r2806 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Jun 25 17:36:29 CEST 2008
Author: phk
Date: 2008-06-25 17:36:28 +0200 (Wed, 25 Jun 2008)
New Revision: 2806
Modified:
trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Fix a startup race condition: Make sure the threadpools are created
before the herder starts, in order that it will create the minimum
number of threads in the pool.
Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c 2008-06-25 13:33:12 UTC (rev 2805)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c 2008-06-25 15:36:28 UTC (rev 2806)
@@ -565,6 +565,7 @@
AZ(pthread_cond_init(&herder_cond, NULL));
AZ(pthread_mutex_init(&herder_mtx, NULL));
+ wrk_addpools(params->wthread_pools);
AZ(pthread_create(&tp, NULL, wrk_herdtimer_thread, NULL));
AZ(pthread_detach(tp));
AZ(pthread_create(&tp, NULL, wrk_herder_thread, NULL));
More information about the varnish-commit
mailing list