[3.0] 2587b1b Mark ban list as volatile
Tollef Fog Heen
tfheen at varnish-cache.org
Tue Sep 18 11:31:22 CEST 2012
commit 2587b1b973b1c4e019ee74da7a93fe31af5a6186
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date: Tue Sep 18 11:21:09 2012 +0200
Mark ban list as volatile
Fixes #1194
diff --git a/bin/varnishd/cache_ban.c b/bin/varnishd/cache_ban.c
index 5c1da57..138a1f6 100644
--- a/bin/varnishd/cache_ban.c
+++ b/bin/varnishd/cache_ban.c
@@ -81,7 +81,8 @@ struct ban_test {
const void *arg2_spec;
};
-static VTAILQ_HEAD(banhead_s,ban) ban_head = VTAILQ_HEAD_INITIALIZER(ban_head);
+/* XXX phk thinks he knows why this is a good idea */
+static volatile VTAILQ_HEAD(banhead_s,ban) ban_head = VTAILQ_HEAD_INITIALIZER(ban_head);
static struct lock ban_mtx;
static struct ban *ban_magic;
static pthread_t ban_thread;
More information about the varnish-commit
mailing list