Commit 4c26ecf8 authored by Aurel's avatar Aurel

rows of partition list must be initialize with empty list instead of

None values


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@242 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d2481462
......@@ -55,13 +55,13 @@ class PartitionTable(object):
self.np = num_partitions
self.nr = num_replicas
self.num_filled_rows = 0
self.partition_list = [None] * num_partitions
self.partition_list = [[]] * num_partitions
self.count_dict = {}
def clear(self):
"""Forget an existing partition table."""
self.num_filled_rows = 0
self.partition_list = [None] * self.np
self.partition_list = [[]] * self.np
self.count_dict.clear()
def getNodeList(self):
......
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