---
 bin/varnishd/cache/cache_ban.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/varnishd/cache/cache_ban.c b/bin/varnishd/cache/cache_ban.c
index e1b60e0..489f33c 100644
--- a/bin/varnishd/cache/cache_ban.c
+++ b/bin/varnishd/cache/cache_ban.c
@@ -1280,4 +1280,9 @@ BAN_Shutdown(void)
 
        AZ(pthread_join(ban_thread, &status));
        AZ(status);
+
+       Lck_Lock(&ban_mtx);
+       /* Export the ban list to compact it */
+       ban_export();
+       Lck_Unlock(&ban_mtx);
 }
-- 
1.7.10.4


_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to