Commit 6615cb5c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix handler import.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@985 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ad52292a
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
import logging import logging
from random import choice from random import choice
from neo.storage import handlers from neo.storage.handlers import replication
from neo import protocol from neo import protocol
from neo.protocol import STORAGE_NODE_TYPE, UP_TO_DATE_STATE, \ from neo.protocol import STORAGE_NODE_TYPE, UP_TO_DATE_STATE, \
OUT_OF_DATE_STATE, RUNNING_STATE OUT_OF_DATE_STATE, RUNNING_STATE
...@@ -91,6 +91,7 @@ class Replicator(object): ...@@ -91,6 +91,7 @@ class Replicator(object):
self.waiting_for_unfinished_tids = False self.waiting_for_unfinished_tids = False
self.unfinished_tid_list = None self.unfinished_tid_list = None
self.replication_done = True self.replication_done = True
self.tid_offset = 0
self.primary_master_connection = app.master_conn self.primary_master_connection = app.master_conn
def reset(self): def reset(self):
...@@ -175,7 +176,7 @@ class Replicator(object): ...@@ -175,7 +176,7 @@ class Replicator(object):
self.current_connection = None self.current_connection = None
if self.current_connection is None: if self.current_connection is None:
handler = handlers.ReplicationHandler(app) handler = replication.ReplicationHandler(app)
self.current_connection = ClientConnection(app.em, handler, self.current_connection = ClientConnection(app.em, handler,
addr = addr, addr = addr,
connector_handler = app.connector_handler) connector_handler = app.connector_handler)
......
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