[Zodb-checkins] SVN: ZODB/branches/jim-thready/src/ZODB/FileStorage/FileStorage.py Updated to reflect tightening of storage api

Jim Fulton jim at zope.com
Fri Jan 22 17:30:52 EST 2010


Log message for revision 108402:
  Updated to reflect tightening of storage api
  

Changed:
  U   ZODB/branches/jim-thready/src/ZODB/FileStorage/FileStorage.py

-=-
Modified: ZODB/branches/jim-thready/src/ZODB/FileStorage/FileStorage.py
===================================================================
--- ZODB/branches/jim-thready/src/ZODB/FileStorage/FileStorage.py	2010-01-22 22:30:50 UTC (rev 108401)
+++ ZODB/branches/jim-thready/src/ZODB/FileStorage/FileStorage.py	2010-01-22 22:30:51 UTC (rev 108402)
@@ -750,7 +750,8 @@
             self._lock_acquire()
             try:
                 if transaction is not self._transaction:
-                    return
+                    raise POSException.StorageTransactionError(
+                        "tpc_finish called with wrong transaction")
                 try:
                     if f is not None:
                         f(self._tid)



More information about the Zodb-checkins mailing list