Commit 4e7c13c1 authored by Aurel's avatar Aurel

remove node in DISCARDED_STATE from partition table in memory too


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@566 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2c17e90a
...@@ -211,8 +211,10 @@ class OperationEventHandler(StorageEventHandler): ...@@ -211,8 +211,10 @@ class OperationEventHandler(StorageEventHandler):
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 == DISCARDED_STATE:
pt.setCell(offset, node, state) pt.removeCell(offset, node)
else:
pt.setCell(offset, node, state)
if uuid == app.uuid: if uuid == app.uuid:
# If this is for myself, this can affect replications. # If this is for myself, this can affect replications.
......
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