[Neo-report] r2566 vincent - /trunk/neo/master/transactions.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 23 11:16:35 CET 2010
Author: vincent
Date: Thu Dec 23 11:16:35 2010
New Revision: 2566
Log:
Call setLastTID when begining with a client-provided TID.
Modified:
trunk/neo/master/transactions.py
Modified: trunk/neo/master/transactions.py
==============================================================================
--- trunk/neo/master/transactions.py [iso-8859-1] (original)
+++ trunk/neo/master/transactions.py [iso-8859-1] Thu Dec 23 11:16:35 2010
@@ -333,7 +333,10 @@ class TransactionManager(object):
# No TID requested, generate a temporary one
tid = self.getTTID()
else:
+ # Use of specific TID requested, queue it immediately and update
+ # last TID.
self._queue.append((uuid, tid))
+ self.setLastTID(tid)
return tid
def prepare(self, node, ttid, divisor, oid_list, uuid_list, msg_id):
@@ -347,7 +350,6 @@ class TransactionManager(object):
else:
tid = self._nextTID(ttid, divisor)
self._queue.append((node.getUUID(), tid))
- self.setLastTID(tid)
neo.logging.debug('Finish TXN %s for %s (was %s)', dump(tid), node, dump(ttid))
txn = Transaction(node, ttid, tid, oid_list, uuid_list, msg_id)
self._tid_dict[tid] = txn
More information about the Neo-report
mailing list