[master] 04d9a40a5 make two identical comparisons the same

Nils Goroll nils.goroll at uplex.de
Wed Dec 5 10:41:10 UTC 2018


commit 04d9a40a565c21380d3b8e64ee713d17e7636363
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Dec 5 11:40:13 2018 +0100

    make two identical comparisons the same
    
    see 11 lines down

diff --git a/bin/varnishd/cache/cache_hash.c b/bin/varnishd/cache/cache_hash.c
index f7f662b27..5c25abc4a 100644
--- a/bin/varnishd/cache/cache_hash.c
+++ b/bin/varnishd/cache/cache_hash.c
@@ -500,7 +500,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp)
 		if (exp_oc != NULL) {
 			exp_oc->refcnt++;
 			*ocp = exp_oc;
-			if (EXP_Ttl_grace(req, exp_oc) > req->t_req) {
+			if (EXP_Ttl_grace(req, exp_oc) >= req->t_req) {
 				exp_oc->hits++;
 				Lck_Unlock(&oh->mtx);
 				return (HSH_GRACE);


More information about the varnish-commit mailing list