Commit 96e1ac4
Fixes a scoping bug that leads to "sticky" weights (apache#8606) (apache#296)
* Due to scoping, the last user-provided weight seen will be applied to all subsequent hosts that lack a weight
* Added a constant to specify the default weight
* Resets the weight to default prior to parsing each parent's configuration to ensure defaults are used when no weight exists
(cherry picked from commit 4e6dc02)
Co-authored-by: Jeff Elsloo <elsloo@users.noreply.github.com>1 parent 7928c21 commit 96e1ac4
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments