-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data race in gossip/discovery test
This change set fixes two data races: 1) A logger reference was overriden while the logger might be in use. I changed the implementation so that the logger will be injected. 2) A shared number was incremented by logger hooks that are instantiated multiple times for different peers. I made it so that each logger hook receives its own counter, which is no longer a counter but a map of log entries that are searched. Change-Id: Ic69f604f30a16e1a1fb9050ba9145dfa38e05146 Signed-off-by: yacovm <yacovm@il.ibm.com>
- Loading branch information
Showing
3 changed files
with
47 additions
and
31 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
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
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