Commit 2c695de
committed
mma: make external caller mostly use an ExternalRangeChange
An ExternalRangeChange does not have the currently mutable fields of
PendingRangeChange (and the set of mutable fields is going to expand in
the near future). Todos related to limitation of viewing a change as a
"change replicas" or "lease transfer" etc., are moved to
ExternalRangeChange, so compartmentalized to methods that are called by
integration code outside the mma package.
There is still some potential future cleanup involving unexporting
PendingRangeChange, which is not in scope for this PR.
The PendingRangeChange becomes a temporary container for a slice of
[]*pendingReplicaChanges. Printing this struct no longer involves viewing
it as a "change replicas" or "lease transfer". Furthermore, the
ReplicaChange.replicaChangeType field is removed and the change type
is now a function of prev and next. This sets us up for making prev
mutable in a future PR.
Informs #157049
Epic: CRDB-55052
Release note: None1 parent 1f1ee11 commit 2c695de
File tree
12 files changed
+398
-235
lines changed- pkg/kv/kvserver
- allocator/mmaprototype
- asim/mmaintegration
- mmaintegration
12 files changed
+398
-235
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
318 | | - | |
| 320 | + | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
323 | | - | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
329 | | - | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| |||
0 commit comments