Skip to content

Commit

Permalink
stacktrace for shutdown and wipe
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenMathew committed Jul 16, 2024
1 parent f5478fa commit 5b1e486
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,8 @@ func (n *raft) Delete() {
func (n *raft) shutdown(shouldDelete bool) {
n.Lock()

debug.PrintStack()

// Returned swap value is the previous state. It looks counter-intuitive
// to do this atomic operation with the lock held, but we have to do so in
// order to make sure that switchState() is not already running. If it is
Expand Down

0 comments on commit 5b1e486

Please sign in to comment.