[master] 16b8375 Clarify VRT_delete_backend a bit

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Dec 4 16:03:22 CET 2015


commit 16b8375210973852fa39afafad3239d382661fe5
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Dec 4 15:09:02 2015 +0100

    Clarify VRT_delete_backend a bit

diff --git a/bin/varnishd/cache/cache_backend_cfg.c b/bin/varnishd/cache/cache_backend_cfg.c
index 0a58de1..141a06a 100644
--- a/bin/varnishd/cache/cache_backend_cfg.c
+++ b/bin/varnishd/cache/cache_backend_cfg.c
@@ -152,6 +152,9 @@ VRT_delete_backend(VRT_CTX, struct director **dp)
 	VTAILQ_REMOVE(&backends, be, list);
 	VTAILQ_INSERT_TAIL(&cool_backends, be, list);
 	Lck_Unlock(&be->mtx);
+
+	// NB. The backend is still usable for the ongoing transactions,
+	// this is why we don't bust the director's magic number.
 }
 
 /*---------------------------------------------------------------------



More information about the varnish-commit mailing list