Skip to content

Commit 7f32131

Browse files
authored
Merge pull request #152889 from cockroachdb/blathers/backport-release-25.2-152884
2 parents 8fd64d3 + 3735b70 commit 7f32131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvserver/replica_raft.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ func (r *Replica) stepRaftGroupRaftMuLocked(req *kvserverpb.RaftMessageRequest)
702702
// Update the lastUpdateTimes map, unless configured not to by a testing
703703
// knob.
704704
disableUpdateLastUpdateTimesMapOnRaftGroupStep := false
705-
if r.store.TestingKnobs() == nil &&
705+
if r.store.TestingKnobs() != nil &&
706706
r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep != nil {
707707
disableUpdateLastUpdateTimesMapOnRaftGroupStep = r.store.TestingKnobs().DisableUpdateLastUpdateTimesMapOnRaftGroupStep(r)
708708
}

0 commit comments

Comments
 (0)