Ported to pybsddb 4.1 (experimental), these changes are actually the
right thing to do anyway, and should work just find for earlier versions of the wrapper. Specifically, _doabort(), _docommit(), _mark(), _sweep(), _collect_objs(): Transactionally protect .truncate() and .consume() _docommit(): Move the setting of the _pending flag to here from _finish() so we can transactionally protect it more conveniently. This does't change the semantics and the recovery code in _setupDBs() doesn't care since the flag will already be set to COMMIT. _begin(): Transactionally protect the setting of the _pending flag to ABORT.
Showing
Please register or sign in to comment