Commit 1307a0cb authored by Vincent Pelletier's avatar Vincent Pelletier

Move test for replicator presence out of loop.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2202 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent eae5051a
...@@ -44,8 +44,9 @@ class MasterOperationHandler(BaseMasterHandler): ...@@ -44,8 +44,9 @@ class MasterOperationHandler(BaseMasterHandler):
app.dm.changePartitionTable(ptid, cell_list) app.dm.changePartitionTable(ptid, cell_list)
# Check changes for replications # Check changes for replications
if app.replicator is not None:
for offset, uuid, state in cell_list: for offset, uuid, state in cell_list:
if uuid == app.uuid and app.replicator is not None: if uuid == app.uuid:
# If this is for myself, this can affect replications. # If this is for myself, this can affect replications.
if state == CellStates.DISCARDED: if state == CellStates.DISCARDED:
app.replicator.removePartition(offset) app.replicator.removePartition(offset)
......
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