Skip to content

Commit

Permalink
kv: address TODO in replicaRLockedStoreLiveness.SupportFor
Browse files Browse the repository at this point in the history
We now assign storeLiveness in the Store constructor.

Epic: None
Release note: None
  • Loading branch information
nvanbenschoten committed Oct 22, 2024
1 parent 6cd574d commit 95da904
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/kv/kvserver/replica_store_liveness.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ func (r *replicaRLockedStoreLiveness) SupportFor(replicaID raftpb.PeerID) (raftp
log.Warningf(ctx, "store not found for replica %d in SupportFor", replicaID)
return 0, false
}
// TODO(arul): we can remove this once we start to assign storeLiveness in the
// Store constructor.
if r.store.storeLiveness == nil {
return 0, false
}
epoch, ok := r.store.storeLiveness.SupportFor(storeID)
return raftpb.Epoch(epoch), ok
}
Expand Down

0 comments on commit 95da904

Please sign in to comment.