[Neo-report] r2647 gregory - /trunk/neo/storage/replicator.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 8 15:06:52 CET 2011
Author: gregory
Date: Tue Feb 8 15:06:52 2011
New Revision: 2647
Log:
Factorise access to offset.
Signed-off-by: Grégory <gregory at nexedi.com>
Modified:
trunk/neo/storage/replicator.py
Modified: trunk/neo/storage/replicator.py
==============================================================================
--- trunk/neo/storage/replicator.py [iso-8859-1] (original)
+++ trunk/neo/storage/replicator.py [iso-8859-1] Tue Feb 8 15:06:52 2011
@@ -274,10 +274,10 @@ class Replicator(object):
def _finishReplication(self):
# TODO: remove try..except: pass
try:
- self.partition_dict.pop(self.current_partition.getOffset())
# Notify to a primary master node that my cell is now up-to-date.
conn = self.app.master_conn
offset = self.current_partition.getOffset()
+ self.partition_dict.pop(offset)
conn.notify(Packets.NotifyReplicationDone(offset))
except KeyError:
pass
More information about the Neo-report
mailing list