[master] 256504c Comment polishing

Poul-Henning Kamp phk at FreeBSD.org
Mon Jun 1 11:33:24 CEST 2015


commit 256504c5a658a3a6409742cb931104c2e1d54e7c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jun 1 08:10:02 2015 +0000

    Comment polishing

diff --git a/bin/varnishd/cache/cache_backend_cfg.c b/bin/varnishd/cache/cache_backend_cfg.c
index b917618..9fa64b5 100644
--- a/bin/varnishd/cache/cache_backend_cfg.c
+++ b/bin/varnishd/cache/cache_backend_cfg.c
@@ -73,9 +73,7 @@ VBE_DeleteBackend(struct backend *b)
 }
 
 /*--------------------------------------------------------------------
- * Add a backend/director instance when loading a VCL.
- * If an existing backend is matched, grab a refcount and return.
- * Else create a new backend structure with reference initialized to one.
+ * Create a new director::backend instance.
  */
 
 struct backend *
@@ -102,9 +100,6 @@ VBE_AddBackend(const char *vcl, const struct vrt_backend *vb)
 
 	b->tcp_pool = VBT_Ref(vb->ipv4_suckaddr, vb->ipv6_suckaddr);
 
-	/*
-	 * Copy over the sockaddrs
-	 */
 	if (vb->ipv4_suckaddr != NULL)
 		b->ipv4 = VSA_Clone(vb->ipv4_suckaddr);
 	if (vb->ipv6_suckaddr != NULL)



More information about the varnish-commit mailing list