mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 22:15:14 +00:00
[BUG] hot reconfiguration failed because of a wrong error check
The error check in return of start_proxies checked for exact ERR_RETRYABLE but did not consider the return as a bit field. The function returned both ERR_RETRYABLE and ERR_ALERT, hence the problem.
This commit is contained in:
parent
4009f016c2
commit
e13e9251a6
@ -851,7 +851,8 @@ int main(int argc, char **argv)
|
||||
while (retry >= 0) {
|
||||
struct timeval w;
|
||||
err = start_proxies(retry == 0 || nb_oldpids == 0);
|
||||
if (err != ERR_RETRYABLE)
|
||||
/* exit the loop on no error or fatal error */
|
||||
if ((err & (ERR_RETRYABLE|ERR_FATAL)) != ERR_RETRYABLE)
|
||||
break;
|
||||
if (nb_oldpids == 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user