mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-13 10:50:16 -04:00
BUG: MAJOR: lb_map: server map calculation broken
Adrian Williams reported that several balancing methods were broken and sent all requests to one backend. This is a regression in haproxy 1.8 where the server score was not correctly recalculated. This fix must be backported to the 1.8 branch.
This commit is contained in:
parent
ed0d24ebed
commit
3906d5739c
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ void recalc_server_map(struct proxy *px)
|
|||
}
|
||||
}
|
||||
px->lbprm.map.srv[o] = best;
|
||||
HA_ATOMIC_ADD(&best->wscore, tot);
|
||||
HA_ATOMIC_SUB(&best->wscore, tot);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue