Permalink
Browse files

Clean up bootstrap data structure when bootstrap is done

  • Loading branch information...
1 parent cd6bd90 commit 3618d7f2627cfea94243150fde4d7fc6f67fcc84 Raul Jimenez committed Jun 14, 2012
Showing with 7 additions and 0 deletions.
  1. +6 −0 core/bootstrap.py
  2. +1 −0 plugins/routing_nice_rtt.py
View
@@ -79,6 +79,12 @@ def do_bootstrap(self, num_rnodes):
# print '>> using bootstrap nodes', len(nodes)
return queries_to_send, maintenance_lookup, delay
+ def bootstrap_done(self):
+ #clean up stuff that will never be used
+ self.saved_bootstrap_nodes = []
+ self.main_bootstrap_nodes = []
+ self.backup_bootstrap_nodes = []
+
def is_bootstrap_node(self, node_):
return node_.ip in self.bootstrap_ips
@@ -126,6 +126,7 @@ def do_maintenance(self):
maintenance_delay = bootstrap_delay
else:
self._maintenance_mode = FILL_BUCKETS
+ self.bootstrapper.bootstrap_done()
elif self._maintenance_mode == FILL_BUCKETS:
if self._num_pending_filling_lookups:
self._num_pending_filling_lookups -= 1

0 comments on commit 3618d7f

Please sign in to comment.