-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved locking to protect a read of a map in the router
The locking was not protecting a read, so a simultaneous write would crash the router. I made a bunch of new functions that implemented the functional part of the function without the locking, then made the locking functions acquire the lock and then call the internal part. Then in the rename, I moved the lock acquisition earlier and called the internal functions. In brief: re-jiggered the code so we could lock properly. Fixes bug 1473031 (https://bugzilla.redhat.com/show_bug.cgi?id=1473031)
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 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