[master] 819241d2a Add a comment

Nils Goroll nils.goroll at uplex.de
Wed Apr 10 09:57:06 UTC 2019


commit 819241d2a78425a752efc591aa76d12c25171307
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Apr 10 11:56:08 2019 +0200

    Add a comment
    
    as requested by @Dridi

diff --git a/bin/varnishd/cache/cache_hash.c b/bin/varnishd/cache/cache_hash.c
index 0d54fd48c..b108a3062 100644
--- a/bin/varnishd/cache/cache_hash.c
+++ b/bin/varnishd/cache/cache_hash.c
@@ -777,6 +777,10 @@ HSH_Cancel(struct worker *wrk, struct objcore *oc, struct boc *boc)
 	if ((oc->flags & (OC_F_PRIVATE | OC_F_HFM | OC_F_HFP)) == 0)
 		return;
 
+	/*
+	 * the caller-provided boc is optional, if they do not have one, we grab
+	 * a ref
+	 */
 	if (boc == NULL)
 		bocref = boc = HSH_RefBoc(oc);
 


More information about the varnish-commit mailing list