[Neo-report] r2096 vincent - /trunk/neo/master/handlers/client.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 13 12:57:36 CEST 2010
Author: vincent
Date: Thu May 13 12:57:35 2010
New Revision: 2096
Log:
Factorise packet creation, as it uses loop invariants.
Modified:
trunk/neo/master/handlers/client.py
Modified: trunk/neo/master/handlers/client.py
==============================================================================
--- trunk/neo/master/handlers/client.py [iso-8859-1] (original)
+++ trunk/neo/master/handlers/client.py [iso-8859-1] Thu May 13 12:57:35 2010
@@ -75,9 +75,10 @@
# Request locking data.
# build a new set as we may not send the message to all nodes as some
# might be not reachable at that time
+ p = Packets.AskLockInformation(tid)
used_uuid_set = set()
for node in self.app.nm.getIdentifiedList(pool_set=uuid_set):
- node.ask(Packets.AskLockInformation(tid), timeout=60)
+ node.ask(p, timeout=60)
used_uuid_set.add(node.getUUID())
app.tm.prepare(tid, oid_list, used_uuid_set, conn.getPeerId())
More information about the Neo-report
mailing list