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 5b0891c commit 3735b70Copy full SHA for 3735b70
pkg/kv/kvserver/replica_raft.go
@@ -702,7 +702,7 @@ func (r *Replica) stepRaftGroupRaftMuLocked(req *kvserverpb.RaftMessageRequest)
702
// Update the lastUpdateTimes map, unless configured not to by a testing
703
// knob.
704
disableUpdateLastUpdateTimesMapOnRaftGroupStep := false
705
- if r.store.TestingKnobs() == nil &&
+ if r.store.TestingKnobs() != nil &&
706
r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep != nil {
707
disableUpdateLastUpdateTimesMapOnRaftGroupStep = r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep(r)
708
}
0 commit comments