Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch fixes a race condition that can happen in the dhcp agent when a subnet is created and then a host route is then immediately added to that subnet following a subnet.update.end notification. The race condition occurs in refresh_dhcp_helper() where self.enable_dhcp_helper() gets called twice since the first call had not completed self.cache.put(network). This same race condition can also occur in the other events so lockutils.synchronized() is added to synchronize those code segments as well. Fixes bug 1155748 Change-Id: I2ff52adc3dfebddd6d9c15d5dc79aa65be107179
- Loading branch information
1 parent
c6bf10d
commit 885cc41
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters