Commit 6a4ab713 authored by Geoff Simmons's avatar Geoff Simmons

trackrdrd: move the "workers running" warning into the monitor thread

parent 185b000f
......@@ -690,9 +690,6 @@ OSL_Track(void *priv, enum VSL_tag_e tag, unsigned fd, unsigned len,
return 1;
wrk_running = WRK_Running();
if (wrk_running < config.nworkers)
LOG_Log(LOG_WARNING, "%d of %d workers running", wrk_running,
config.nworkers);
/* spec != 'c' */
if ((spec & VSL_S_CLIENT) == 0)
......
......@@ -86,7 +86,11 @@ log_output(void)
/* locking would be overkill */
dtbl.r_stats.occ_hi_this = 0;
if (config.monitor_workers)
if (config.monitor_workers) {
int wrk_running = WRK_Running();
if (wrk_running < config.nworkers)
LOG_Log(LOG_WARNING, "%d of %d workers running", wrk_running,
config.nworkers);
WRK_Stats();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment