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): ...@@ -335,7 +335,6 @@ class PrimaryEventHandler(BaseClientEventHandler):
if app.ptid >= ptid: if app.ptid >= ptid:
# Ignore this packet. # Ignore this packet.
return return
app.ptid = ptid app.ptid = ptid
for offset, uuid, state in cell_list: for offset, uuid, state in cell_list:
node = nm.getNodeByUUID(uuid) node = nm.getNodeByUUID(uuid)
...@@ -344,8 +343,8 @@ class PrimaryEventHandler(BaseClientEventHandler): ...@@ -344,8 +343,8 @@ class PrimaryEventHandler(BaseClientEventHandler):
if uuid != app.uuid: if uuid != app.uuid:
node.setState(TEMPORARILY_DOWN_STATE) node.setState(TEMPORARILY_DOWN_STATE)
nm.add(node) nm.add(node)
if state in (DISCARDED_STATE, FEEDING_STATE): if state == DISCARDED_STATE:
pt.dropNode(node) pt.removeCell(offset, node)
else: else:
pt.setCell(offset, node, state) 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