-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add mutex to synchronize read/write of active snapshot
Though the discipline of the main goroutine handling the transition from nil, and the InitiateSnapshot goroutine handling the transition to nil *might* be safe, it's fragile and undocumented. Better to put in explicit synchronization and avoid the issue.
- Loading branch information
Showing
1 changed file
with
48 additions
and
14 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