pybsddb with cffi

Check-in [39064e3640]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Corrected exception
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:39064e36406f146d579b5bce1d2460c9cce8e0df
User & Date: broker-3 2013-02-07 15:12:25
Context
2013-02-28
14:58
Added `DBPermissionsError` check-in: d0861fc808 user: broker-3 tags: trunk
2013-02-07
15:12
Corrected exception check-in: 39064e3640 user: broker-3 tags: trunk
14:39
Trying to pass test_distributed_transactions - no success check-in: 98750dee3e user: broker-3 tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to bsddb3/db.py.

1477
1478
1479
1480
1481
1482
1483
1484



1485
1486
1487
1488
1489
1490
1491
            from warnings import warn
            warn("Must close cursors before resolving a transaction.",
                 RuntimeWarning)
            cursor.close()
        assert not self.children_cursors

    def _abort_discard(self, discard):  # DBTxn_abort_discard_internal
        self._check_txn()



        self._close_cursors()
        for sequence in _iter_wset(self.children_sequences):
            sequence.close()
        for db in _iter_wset(self.children_dbs):
            db.close()
        self.db_env.children_txns.discard(ref(self))
        try:







|
>
>
>







1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
            from warnings import warn
            warn("Must close cursors before resolving a transaction.",
                 RuntimeWarning)
            cursor.close()
        assert not self.children_cursors

    def _abort_discard(self, discard):  # DBTxn_abort_discard_internal
        if self.txn is None:
            raise DBError(0, "DBTxn must not be used after"
                             "txn_commit, txn_abort or txn_discard")

        self._close_cursors()
        for sequence in _iter_wset(self.children_sequences):
            sequence.close()
        for db in _iter_wset(self.children_dbs):
            db.close()
        self.db_env.children_txns.discard(ref(self))
        try: