Commit 1572ff3
Merge #153525
153525: mmaprototype: make conf read only in makeNormalizedSpanConfig r=tbg a=wenyihu6
Previously, when fixing how makeNormalizedSpanConfig uses conf.NumVoters to
determine the number of voters, we incorrectly changed conf.NumVoters directly
to conf.NumReplicas when its value was 0. This commit corrects the behavior by
ensuring that the input conf is not modified when falling back to NumReplicas.
Epic: none
Release note: none
Co-authored-by: wenyihu6 <wenyi@cockroachlabs.com>File tree
2 files changed
+5
-7
lines changed- pkg/kv/kvserver/allocator/mmaprototype
2 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
| 255 | + | |
258 | 256 | | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
262 | | - | |
| 260 | + | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
| |||
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
272 | | - | |
| 270 | + | |
273 | 271 | | |
274 | 272 | | |
275 | 273 | | |
| |||
287 | 285 | | |
288 | 286 | | |
289 | 287 | | |
290 | | - | |
| 288 | + | |
291 | 289 | | |
292 | 290 | | |
293 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments