Commit 8d420adf authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid requesting unfinished TID list over and over (fixes r2207).

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2257 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8be9150f
...@@ -263,13 +263,13 @@ class Replicator(object): ...@@ -263,13 +263,13 @@ class Replicator(object):
min_unfinished_tid = min(self.unfinished_tid_list) min_unfinished_tid = min(self.unfinished_tid_list)
else: else:
min_unfinished_tid = None min_unfinished_tid = None
self.unfinished_tid_list = None
for partition in self.partition_dict.values(): for partition in self.partition_dict.values():
if partition.safe(min_unfinished_tid): if partition.safe(min_unfinished_tid):
self.current_partition = partition self.current_partition = partition
break break
else: else:
# Not yet. # Not yet.
self.unfinished_tid_list = None
logging.debug('not ready yet') logging.debug('not ready yet')
return return
......
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