Skip to content

Commit a199d8d

Browse files
committed
mma: remove accidental duplicate comment
Epic: CRDB-55052 Release note: None
1 parent d9b2fc2 commit a199d8d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pkg/kv/kvserver/allocator/mmaprototype/cluster_state_rebalance_stores.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -523,13 +523,6 @@ func (re *rebalanceEnv) rebalanceLeasesFromLocalStoreID(
523523
log.KvDistribution.VEventf(ctx, 2, "local store s%d is CPU overloaded (%v >= %v), attempting lease transfers first",
524524
store.StoreID, store.dimSummary[CPURate], overloadSlow)
525525
// This store is local, and cpu overloaded. Shed leases first.
526-
//
527-
// NB: due to REQUIREMENT(change-computation), the top-k ranges for ss
528-
// reflect the latest adjusted state, including pending changes. Thus,
529-
// this store must be a replica and the leaseholder, which is asserted
530-
// below. The code below additionally ignores the range if it has pending
531-
// changes, which while not necessary for the is-leaseholder assertion,
532-
// makes the case where we assert even narrower.
533526
topKRanges := ss.adjusted.topKRanges[localStoreID]
534527
var leaseTransferCount int
535528
n := topKRanges.len()

0 commit comments

Comments
 (0)