Commit fdf688f
committed
mmaprototype: panic for no leaseholders
This change commit ensureAnalyzedConstraints to panic when no leaseholder is
found instead of returning a bool that errors. This state of no leaseholder
should not occur — range messages are expected to include a leaseholder, and we
validate that pending changes to the range state should not result in a range
with no leaseholders.1 parent 9d2b6d9 commit fdf688f
File tree
2 files changed
+10
-13
lines changed- pkg/kv/kvserver/allocator/mmaprototype
2 files changed
+10
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
| 706 | + | |
707 | 707 | | |
708 | | - | |
| 708 | + | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
725 | 724 | | |
726 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
727 | 731 | | |
728 | 732 | | |
729 | 733 | | |
730 | | - | |
731 | 734 | | |
732 | 735 | | |
733 | 736 | | |
| |||
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 288 | + | |
292 | 289 | | |
293 | 290 | | |
294 | 291 | | |
| |||
486 | 483 | | |
487 | 484 | | |
488 | 485 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 486 | + | |
493 | 487 | | |
494 | 488 | | |
495 | 489 | | |
| |||
0 commit comments