-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NRG: Wait for goroutines on shutdown
Otherwise a call to `Stop()` or `Delete()` can return before the goroutines have finished, which may create a race if the node then gets restarted instantly. Also don't delete on subsequent calls to `shutdown()` if already closed, as this can potentially cause us to delete the state on disk from underneath a new running instance of the Raft group. Signed-off-by: Neil Twigg <[email protected]>
- Loading branch information
1 parent
52edb12
commit 9613916
Showing
1 changed file
with
20 additions
and
15 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