[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/StorageServer.py Don't pass tid and status to tpc_begin unless necessary. Some storages
Jim Fulton
jim at zope.com
Sat Oct 25 20:36:03 EDT 2008
Log message for revision 92551:
Don't pass tid and status to tpc_begin unless necessary. Some storages
don't support recovery and, thus, don't expect tid and status to be passed.
Changed:
U ZODB/trunk/src/ZEO/StorageServer.py
-=-
Modified: ZODB/trunk/src/ZEO/StorageServer.py
===================================================================
--- ZODB/trunk/src/ZEO/StorageServer.py 2008-10-26 00:35:57 UTC (rev 92550)
+++ ZODB/trunk/src/ZEO/StorageServer.py 2008-10-26 00:36:01 UTC (rev 92551)
@@ -543,7 +543,10 @@
self.locked = 1
self.timeout.begin(self)
self.stats.lock_time = time.time()
- self.storage.tpc_begin(txn, tid, status)
+ if (tid is not None) or (status != ' '):
+ self.storage.tpc_begin(txn, tid, status)
+ else:
+ self.storage.tpc_begin(txn)
def _store(self, oid, serial, data):
err = None
More information about the Zodb-checkins
mailing list