[master] b5aaa5426 Revert overcommitted change
Guillaume Quintard
guillaume at varnish-software.com
Wed Aug 22 17:06:08 UTC 2018
commit b5aaa5426aae16c2dbda9ac8f112351a193190a9
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Wed Aug 22 09:59:20 2018 -0700
Revert overcommitted change
diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index 2561d7db6..175bee8a3 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -806,7 +806,7 @@ VRT_r_obj_hits(VRT_CTX)
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CHECK_OBJ_NOTNULL(ctx->req, REQ_MAGIC);
CHECK_OBJ_NOTNULL(ctx->req->objcore, OBJCORE_MAGIC);
- return (ctx->req->is_hit ? ctx->req->objcore->hits : 1);
+ return (ctx->req->is_hit ? ctx->req->objcore->hits : 0);
}
VCL_BOOL
More information about the varnish-commit
mailing list