Skip to content

Commit d2bb68c

Browse files
craig[bot]tbg
andcommitted
Merge #157224
157224: mmaprototype: move rebalanceStores to its own file r=tbg a=tbg This PR refactors `rebalanceStores` by extracting the store-shedding logic from into a standalone `rebalanceStore` method on a new `rebalanceState` struct. The struct encapsulates rebalancing state (cluster state references, counters, configuration, and scratch variables), reducing the method's cyclomatic complexity and improving organization. More follow-up refactors are planned to straighten this up further and decompose it more, but this seemed like a good checkpoint. There should be zero behavior changes in this PR. Informs #157757. Epic: CRDB-55052 Co-authored-by: Tobias Grieger <[email protected]>
2 parents 3b2811c + db7c2de commit d2bb68c

File tree

1 file changed

+416
-372
lines changed

1 file changed

+416
-372
lines changed

0 commit comments

Comments
 (0)