Commit b524a503 authored by Vincent Pelletier's avatar Vincent Pelletier

Cleanup storage code now that message queue is implemented.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@698 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a19130e1
...@@ -222,6 +222,7 @@ class Application(object): ...@@ -222,6 +222,7 @@ class Application(object):
node = nm.getNodeByUUID(uuid) node = nm.getNodeByUUID(uuid)
if node is self.primary_master_node: if node is self.primary_master_node:
# Yes, I have. # Yes, I have.
conn.setHandler(VerificationEventHandler(self))
return return
def verifyData(self): def verifyData(self):
......
...@@ -181,10 +181,6 @@ class BootstrapEventHandler(StorageEventHandler): ...@@ -181,10 +181,6 @@ class BootstrapEventHandler(StorageEventHandler):
# Node UUID was set in handleAnswerPrimaryMaster # Node UUID was set in handleAnswerPrimaryMaster
assert node.getUUID() == uuid assert node.getUUID() == uuid
# XXX: change handler for next packet (which might be handled in poll before it returns)
# This should be removed when we will handle our own pending packet queue.
conn.setHandler(VerificationEventHandler(app))
@decorators.client_connection_required @decorators.client_connection_required
def handleAnswerPrimaryMaster(self, conn, packet, primary_uuid, def handleAnswerPrimaryMaster(self, conn, packet, primary_uuid,
known_master_list): known_master_list):
......
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