Commit d5e37b2b authored by Vincent Pelletier's avatar Vincent Pelletier

Do not use the same handler for identification on secondary masters.

parent 7de9f20c
...@@ -373,7 +373,7 @@ class Application(object): ...@@ -373,7 +373,7 @@ class Application(object):
# and another for the future incoming connections # and another for the future incoming connections
self.listening_conn.setHandler( self.listening_conn.setHandler(
identification.IdentificationHandler(self)) identification.SecondaryIdentificationHandler(self))
while True: while True:
self.em.poll(1) self.em.poll(1)
......
...@@ -62,3 +62,10 @@ class IdentificationHandler(MasterHandler): ...@@ -62,3 +62,10 @@ class IdentificationHandler(MasterHandler):
handler.connectionCompleted(conn) handler.connectionCompleted(conn)
app.broadcastNodesInformation([node]) app.broadcastNodesInformation([node])
class SecondaryIdentificationHandler(MasterHandler):
def _setupNode(self, conn, node_type, uuid, address, node):
# Nothing to do, storage will disconnect when it receives our answer.
# Primary will do the checks.
return uuid
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