worker: When stopping workers at reconfig, report the number right.
It was reported as negative number (Stopping -2 workers).
This commit is contained in:
parent
11c8394d4e
commit
46576d9c07
|
|
@ -1638,7 +1638,7 @@ void workers_stop(int stop_all)
|
|||
int stopped = 0;
|
||||
|
||||
hlog(LOG_INFO, "Stopping %d worker threads...",
|
||||
(stop_all) ? workers_running : workers_configured - workers_running);
|
||||
(stop_all) ? workers_running : workers_running - workers_configured);
|
||||
while (workers_running > workers_configured || (stop_all && workers_running > 0)) {
|
||||
hlog(LOG_DEBUG, "Stopping a worker thread...");
|
||||
/* find the last worker thread and shut it down...
|
||||
|
|
|
|||
Loading…
Reference in New Issue