Commit a7a46268 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Temporary patch to fix the bug where a the last storage node required to switch

the cluster in operational state handle ASK_UNFINISHED_TRANSACTIONS with the
wrong handler and block the cluster in verification state.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@540 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b1d13e8d
......@@ -388,7 +388,7 @@ class Application(object):
# Wait a bit.
t = time()
while time() < t + 5:
while time() < t + 1:
em.poll(1)
# Now I have at least one to ask.
......@@ -528,6 +528,12 @@ class Application(object):
em = self.em
nm = self.nm
# Wait ask/request primary master exchange with the last storage node
# because it have to be in the verification state
t = time()
while time() < t + 1:
em.poll(1)
# Make sure that every connection has the data verification event handler.
for conn in em.getConnectionList():
conn.setHandler(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