Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up bootstrap data structure when bootstrap is done

  • Loading branch information...
commit 3618d7f2627cfea94243150fde4d7fc6f67fcc84 1 parent cd6bd90
@rauljim authored
Showing with 7 additions and 0 deletions.
  1. +6 −0 core/bootstrap.py
  2. +1 −0  plugins/routing_nice_rtt.py
View
6 core/bootstrap.py
@@ -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
View
1  plugins/routing_nice_rtt.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.