mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-17 02:56:51 +00:00
MINOR: mworker: ReloadFailed shown depending on failedreload
The ReloadFailed prompt in the master CLI is shown only when failedreloads > 0. It was previously using a check on the wait mode, but we always use the wait mode now.
This commit is contained in:
parent
6883674084
commit
3ba7c7b5e1
@ -44,6 +44,7 @@
|
||||
#include <haproxy/list.h>
|
||||
#include <haproxy/listener.h>
|
||||
#include <haproxy/log.h>
|
||||
#include <haproxy/mworker.h>
|
||||
#include <haproxy/mworker-t.h>
|
||||
#include <haproxy/pattern-t.h>
|
||||
#include <haproxy/peers.h>
|
||||
@ -2067,7 +2068,7 @@ void pcli_write_prompt(struct stream *s)
|
||||
} else {
|
||||
if (s->pcli_next_pid == 0)
|
||||
chunk_appendf(msg, "master%s> ",
|
||||
(global.mode & MODE_MWORKER_WAIT) ? "[ReloadFailed]" : "");
|
||||
(proc_self->failedreloads > 0) ? "[ReloadFailed]" : "");
|
||||
else
|
||||
chunk_appendf(msg, "%d> ", s->pcli_next_pid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user