Commit 6645329f authored by Grégory Wisniewski's avatar Grégory Wisniewski

Bug fix: If cell_list was greater than 10000 items, some connections would...

Bug fix: If cell_list was greater than 10000 items, some connections would receive a partial update.

As split big packets is under consideration, send all the cells in one packet for now.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1513 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 52d2cee0
......@@ -332,16 +332,7 @@ class Application(object):
if n is None:
continue
if n.isClient() or n.isStorage() or n.isAdmin():
# Split the packet if too big.
size = len(cell_list)
start = 0
while size:
amt = min(10000, size)
cell_list = cell_list[start:start+amt]
p = Packets.NotifyPartitionChanges(ptid, cell_list)
c.notify(p)
size -= amt
start += amt
c.notify(Packets.NotifyPartitionChanges(ptid, cell_list))
def outdateAndBroadcastPartition(self):
" Outdate cell of non-working nodes and broadcast changes """
......
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