Commit 93c89093 authored by Grégory Wisniewski's avatar Grégory Wisniewski

When starting the cluster from scratch, reset IDs generators, was implicitly

done with INVALID_*ID values, but fails with None.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@873 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 6df1aa10
...@@ -358,6 +358,9 @@ class Application(object): ...@@ -358,6 +358,9 @@ class Application(object):
node = nm.getStorageNodeList()[0] node = nm.getStorageNodeList()[0]
node.setState(protocol.RUNNING_STATE) node.setState(protocol.RUNNING_STATE)
self.broadcastNodeInformation(node) self.broadcastNodeInformation(node)
# resert IDs generators
self.loid = '\0'*8
self.ltid = '\0'*8
# build the partition with this node # build the partition with this node
pt.setID(pack('!Q', 1)) pt.setID(pack('!Q', 1))
pt.make([node]) pt.make([node])
......
...@@ -621,7 +621,6 @@ decode_table[ASK_LAST_IDS] = _decodeAskLastIDs ...@@ -621,7 +621,6 @@ decode_table[ASK_LAST_IDS] = _decodeAskLastIDs
@handle_errors @handle_errors
def _decodeAnswerLastIDs(body): def _decodeAnswerLastIDs(body):
(loid, ltid, lptid) = unpack('!8s8s8s', body) (loid, ltid, lptid) = unpack('!8s8s8s', body)
lptid = _checkPTID(lptid) lptid = _checkPTID(lptid)
return (loid, ltid, lptid) return (loid, ltid, lptid)
......
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