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

Fix condition to avoid ask the partition table to an empty storage node.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@905 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d15eef7a
...@@ -82,13 +82,14 @@ class RecoveryHandler(MasterHandler): ...@@ -82,13 +82,14 @@ class RecoveryHandler(MasterHandler):
def handleAnswerLastIDs(self, conn, packet, loid, ltid, lptid): def handleAnswerLastIDs(self, conn, packet, loid, ltid, lptid):
app = self.app app = self.app
pt = app.pt
# Get max values. # Get max values.
if app.loid < loid: if app.loid < loid:
app.loid = loid app.loid = loid
if app.ltid < ltid: if app.ltid < ltid:
app.ltid = ltid app.ltid = ltid
if app.pt.getID() is None or app.pt.getID() < lptid: if lptid is not None and pt.getID() is None or pt.getID() < lptid:
# something newer # something newer
app.pt.setID(lptid) app.pt.setID(lptid)
app.target_uuid = conn.getUUID() app.target_uuid = conn.getUUID()
......
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