[4.1] e513927 Assert that we don't give REQ bans to the ban lurker to test against.

Martin Blix Grydeland martin at varnish-software.com
Thu Mar 3 10:52:53 CET 2016


commit e5139273f9daf4982c92edeb7ef68ce40d55c351
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Mar 2 14:32:36 2016 +0100

    Assert that we don't give REQ bans to the ban lurker to test against.

diff --git a/bin/varnishd/cache/cache_ban_lurker.c b/bin/varnishd/cache/cache_ban_lurker.c
index fecf6b0..c3d4a19 100644
--- a/bin/varnishd/cache/cache_ban_lurker.c
+++ b/bin/varnishd/cache/cache_ban_lurker.c
@@ -174,6 +174,7 @@ ban_lurker_test_ban(struct worker *wrk, struct vsl_log *vsl, struct ban *bt,
 				VTAILQ_REMOVE(obans, bl, l_list);
 				continue;
 			}
+			AZ(bl->flags & BANS_FLAG_REQ);
 			tests = 0;
 			i = ban_evaluate(wrk, bl->spec, oc, NULL, &tests);
 			VSC_C_main->bans_lurker_tested++;



More information about the varnish-commit mailing list