-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RW lock to Winlogbeat checkpoint (#8007)
During testing it was possible for two goroutines to be reading and writing to the checkpoint file. This change adds a RWMutex that guards against the persist() method and the read() method from stepping on each other. Fixes #7897
- Loading branch information
1 parent
7a0dc61
commit be71c60
Showing
1 changed file
with
7 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