MINOR: mworker: only increment the number of reload in wait mode
Since the wait mode will be started in any case of succesful or failed
reload, change the way haproxy computes the number of reloads of the
processes.
diff --git a/src/haproxy.c b/src/haproxy.c
index a379cbc..a6b8dc3 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -799,7 +799,15 @@
/* reload haproxy and emit a warning */
void mworker_reload()
{
+ struct mworker_proc *child;
+
ha_notice("Reloading HAProxy\n");
+
+ /* increment the number of reloads */
+ list_for_each_entry(child, &proc_list, list) {
+ child->reloads++;
+ }
+
mworker_reexec();
}