[Zodb-checkins] SVN: ZODB/branches/3.4/src/ZODB/BaseStorage.py
tpc_abort(): Repair fubar'ed "repaired" logic.
Tim Peters
tim.one at comcast.net
Wed Oct 5 15:44:08 EDT 2005
Log message for revision 38773:
tpc_abort(): Repair fubar'ed "repaired" logic.
Changed:
U ZODB/branches/3.4/src/ZODB/BaseStorage.py
-=-
Modified: ZODB/branches/3.4/src/ZODB/BaseStorage.py
===================================================================
--- ZODB/branches/3.4/src/ZODB/BaseStorage.py 2005-10-05 19:19:54 UTC (rev 38772)
+++ ZODB/branches/3.4/src/ZODB/BaseStorage.py 2005-10-05 19:44:07 UTC (rev 38773)
@@ -189,11 +189,13 @@
try:
if transaction is not self._transaction:
return
- self._abort()
- self._clear_temp()
- self._transaction = None
+ try:
+ self._abort()
+ self._clear_temp()
+ self._transaction = None
+ finally:
+ self._commit_lock_release()
finally:
- self._commit_lock_release()
self._lock_release()
def _abort(self):
More information about the Zodb-checkins
mailing list