Commit 88ba1212 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove an XXX.

Data structure seems appropriate as from a master point of view, a client
can initiate more than on transaction at time (as it's multithreaded) so
it is required to index current transaction by UUID first, then by tid.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1729 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent cb7ccd80
...@@ -182,7 +182,6 @@ class TransactionManager(object): ...@@ -182,7 +182,6 @@ class TransactionManager(object):
tid = self._nextTID() tid = self._nextTID()
txn = Transaction(node, tid) txn = Transaction(node, tid)
self._tid_dict[tid] = txn self._tid_dict[tid] = txn
# XXX: check the data structure
self._node_dict.setdefault(node, {})[tid] = txn self._node_dict.setdefault(node, {})[tid] = txn
self.setLastTID(tid) self.setLastTID(tid)
return tid return tid
......
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