Commit 4de3dfd5 authored by Barry Warsaw's avatar Barry Warsaw

_abort(): Must call _closelog() otherwise the commit log file is left

in a bogus state.  Without this, after a transaction abort
(i.e. through an exception), nothing can modify the database.
parent a1f7ee68
......@@ -25,7 +25,7 @@ from bsddb3 import db
from ZODB import POSException
from ZODB.BaseStorage import BaseStorage
# $Revision: 1.7 $
# $Revision: 1.8 $
__version__ = '0.1'
......@@ -181,16 +181,8 @@ class BerkeleyBase(BaseStorage):
def _abort(self):
"""Called from BaseStorage.tpc_abort(), this aborts the underlying
BSDDB transaction.
tid is the transaction id
user is the transaction user
desc is the transaction description
ext is the transaction extension
These are all ignored.
"""
# BAW: this appears to be broken. Look in BaseStorage.tpc_abort();
# _abort() is never called with any arguments. :/
self._closelog()
self._transaction.abort()
def _clear_temp(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment