Commit ddb23fcf authored by Grégory Wisniewski's avatar Grégory Wisniewski

The offset given to removeCell should always match the number of partitions.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2428 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8eac180d
...@@ -186,13 +186,13 @@ class PartitionTable(object): ...@@ -186,13 +186,13 @@ class PartitionTable(object):
def removeCell(self, offset, node): def removeCell(self, offset, node):
row = self.partition_list[offset] row = self.partition_list[offset]
if row is not None: assert row is not None
for cell in row: for cell in row:
if cell.getNode() == node: if cell.getNode() == node:
row.remove(cell) row.remove(cell)
if not cell.isFeeding(): if not cell.isFeeding():
self.count_dict[node] -= 1 self.count_dict[node] -= 1
break break
def load(self, ptid, row_list, nm): def load(self, ptid, row_list, nm):
""" """
......
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