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

When an empty offset list is supplied, answer the whole partition table, to be

consistent with client <> master communication.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@798 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3bf17279
......@@ -35,7 +35,12 @@ class VerificationHandler(BaseMasterHandler):
conn.answer(p, packet)
def handleAskPartitionTable(self, conn, packet, offset_list):
app = self.app
app, pt = self.app, self.app.pt
if not offset_list:
# all is requested
# FIXME: in one packet fow now, but later this will be replaced by
# Ask/Send/Answer pattern or a split at packet level.
offset_list = range(0, pt.getPartitions())
row_list = []
try:
for offset in offset_list:
......
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