diff --git a/pkg/kv/kvserver/replica_proposal.go b/pkg/kv/kvserver/replica_proposal.go index 5f8548109c45..45565c2300e3 100644 --- a/pkg/kv/kvserver/replica_proposal.go +++ b/pkg/kv/kvserver/replica_proposal.go @@ -423,8 +423,7 @@ func (r *Replica) leasePostApplyLocked( // this gossip if we're taking over after a leaseholder failure. In both cases, // incremental liveness updates may have been lost, so we want to make sure that // the latest view of node liveness ends up in gossip. - nls := keys.NodeLivenessSpan - if leaseChangingHands && iAmTheLeaseHolder && kvserverbase.ContainsKeyRange(r.descRLocked(), nls.Key, nls.EndKey) { + if leaseChangingHands && iAmTheLeaseHolder { // NB: run these in an async task to keep them out of the critical section // (r.mu is held here). _ = r.store.stopper.RunAsyncTask(r.AnnotateCtx(context.Background()), "lease-triggers", func(ctx context.Context) {