[Neo-report] r2203 vincent - /trunk/neo/storage/replicator.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 19 12:01:34 CEST 2010
Author: vincent
Date: Thu Aug 19 12:01:33 2010
New Revision: 2203
Log:
Factorise code with "reset" method.
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] Thu Aug 19 12:01:33 2010
@@ -84,15 +84,10 @@ class Replicator(object):
def __init__(self, app):
self.app = app
self.new_partition_dict = self._getOutdatedPartitionList()
- self.partition_dict = {}
- self.current_partition = None
- self.current_connection = None
self.critical_tid_dict = {}
- self.waiting_for_unfinished_tids = False
- self.unfinished_tid_list = None
- self.replication_done = True
self.tid_offset = 0
self.primary_master_connection = app.master_conn
+ self.reset()
def reset(self):
"""Reset attributes to restart replicating."""
More information about the Neo-report
mailing list