Commit 34a439f
committed
mmaprototype: add local lease transfer counter and fix bug
Add a local counter to track lease transfers made during processing of a
single store, and use it to fix the bug where the global counter was
incorrectly used to determine if this store transferred leases.
The local counter is incremented alongside the global counter, which is
still needed for loop termination across all stores. The check at the
end of lease rebalancing now correctly uses the local counter to decide
whether to skip replica transfers for this specific store.1 parent 01d86f3 commit 34a439f
File tree
1 file changed
+4
-2
lines changed- pkg/kv/kvserver/allocator/mmaprototype
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| 379 | + | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| |||
396 | 398 | | |
397 | 399 | | |
398 | 400 | | |
399 | | - | |
| 401 | + | |
400 | 402 | | |
401 | 403 | | |
402 | 404 | | |
| |||
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
408 | | - | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
0 commit comments