Commit b831333a authored by Aurel's avatar Aurel

use removeCell instead of dropNode as dropNode reoder the partition

table which is not the job asked here


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@563 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7e8a4e9a
......@@ -335,7 +335,6 @@ class PrimaryEventHandler(BaseClientEventHandler):
if app.ptid >= ptid:
# Ignore this packet.
return
app.ptid = ptid
for offset, uuid, state in cell_list:
node = nm.getNodeByUUID(uuid)
......@@ -344,8 +343,8 @@ class PrimaryEventHandler(BaseClientEventHandler):
if uuid != app.uuid:
node.setState(TEMPORARILY_DOWN_STATE)
nm.add(node)
if state in (DISCARDED_STATE, FEEDING_STATE):
pt.dropNode(node)
if state == DISCARDED_STATE:
pt.removeCell(offset, node)
else:
pt.setCell(offset, node, state)
......
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