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

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.