Commit 6d8daba1 authored by Jim Fulton's avatar Jim Fulton

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.
parent defa21b4
......@@ -543,7 +543,10 @@ class ZEOStorage:
self.locked = 1
self.timeout.begin(self)
self.stats.lock_time = time.time()
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
......
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