Skip to content

Commit b566ec1

Browse files
committed
asim: correctly output rangeID
Previously, the log labeled a value as a range but printed the storeID. This commit fixes it to correctly print the rangeID.
1 parent 0ebbc3c commit b566ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvserver/asim/state/impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ func (s *state) applyLoad(rng *rng, le workload.LoadEvent) {
10891089
func (s *state) RangeUsageInfo(rangeID RangeID, storeID StoreID) allocator.RangeUsageInfo {
10901090
r, ok := s.Range(rangeID)
10911091
if !ok {
1092-
panic(fmt.Sprintf("no leaseholder store found for range %d", storeID))
1092+
panic(fmt.Sprintf("no leaseholder store found for range %d", rangeID))
10931093
}
10941094

10951095
if _, ok = r.Replica(storeID); !ok {

0 commit comments

Comments
 (0)