We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9397945 commit 3b35d3bCopy full SHA for 3b35d3b
pkg/kv/kvserver/replica_raftstorage.go
@@ -642,8 +642,10 @@ func (r *Replica) applySnapshot(
642
if isInitialSnap {
643
// NB: this will also call setDescLockedRaftMuLocked.
644
if err := r.initFromSnapshotLockedRaftMuLocked(ctx, desc); err != nil {
645
+ r.mu.Unlock()
646
log.Fatalf(ctx, "unable to initialize replica while applying snapshot: %+v", err)
647
} else if err := r.store.markReplicaInitializedLockedReplLocked(ctx, r); err != nil {
648
649
log.Fatalf(ctx, "unable to mark replica initialized while applying snapshot: %+v", err)
650
}
651
} else {
0 commit comments