• Barry Warsaw's avatar
    Ported to pybsddb 4.1 (experimental), these changes are actually the · 86e7e1c5
    Barry Warsaw authored
    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.
    86e7e1c5
Minimal.py 22.1 KB