Comment 1 for bug 1886969

Revision history for this message
Brian Haley (brian-haley) wrote :

Strange we haven't seen this before, thanks for filing the bug.

I think doing something like you propose would work, and it shouldn't need the copy()

while True:
    to_reload = self._network_bulk_allocations
    self._network_bulk_allocations = {}
    for network_id in to_reload:
        network = self.cache.get_network_by_id(network_id)
        self.call_driver('bulk_reload_allocations', network)
    eventlet.greenthread.sleep(self.conf.bulk_reload_interval)