Commit eb18417e authored by Vincent Pelletier's avatar Vincent Pelletier

Factorise code with "reset" method.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2203 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1307a0cb
......@@ -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."""
......
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