[master] b609a5376 for backends created on a cold VCL, hide counters

Nils Goroll nils.goroll at uplex.de
Fri Dec 11 17:13:06 UTC 2020


commit b609a537660def17237a0249db75c241ad760376
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Dec 11 18:07:47 2020 +0100

    for backends created on a cold VCL, hide counters
    
    they are revealed by vbe_dir_event() on a warm event
    
    Fixes #3358

diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c
index 826ca94df..2fe784892 100644
--- a/bin/varnishd/cache/cache_backend.c
+++ b/bin/varnishd/cache/cache_backend.c
@@ -635,6 +635,8 @@ VRT_new_backend_clustered(VRT_CTX, struct vsmw_cluster *vc,
 	be->vsc = VSC_vbe_New(vc, &be->vsc_seg,
 	    "%s.%s", VCL_Name(ctx->vcl), vrt->vcl_name);
 	AN(be->vsc);
+	if (! vcl->temp->is_warm)
+		VRT_VSC_Hide(be->vsc_seg);
 
 	be->tcp_pool = VTP_Ref(vep->ipv4, vep->ipv6,
 	    vep->uds_path, vrt_hash_be(vrt->endpoint));


More information about the varnish-commit mailing list