diff --git a/third_party/github.com/goraft/raft/server.go b/third_party/github.com/goraft/raft/server.go index 5ce978ab707..4a43030f1d8 100644 --- a/third_party/github.com/goraft/raft/server.go +++ b/third_party/github.com/goraft/raft/server.go @@ -1248,6 +1248,7 @@ func (s *server) saveSnapshot() error { // Write snapshot to disk. if err := s.pendingSnapshot.save(); err != nil { + s.pendingSnapshot = nil return err }