[master] 6155df1 cleanup
Nils Goroll
nils.goroll at uplex.de
Thu Nov 2 13:12:06 UTC 2017
commit 6155df1eee573bd7325d9155084d40e858530021
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Nov 2 14:10:26 2017 +0100
cleanup
diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index 7f95ccb..b975485 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -547,7 +547,7 @@ VRT_purge(VRT_CTX, double ttl, double grace, double keep)
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
- if (ctx->method != VCL_MET_HIT && ctx->method != VCL_MET_MISS) {
+ if ((ctx->method & (VCL_MET_HIT|VCL_MET_MISS)) == 0) {
VSLb(ctx->vsl, SLT_VCL_Error,
"purge can only happen in vcl_hit{} or vcl_miss{}");
VRT_handling(ctx, VCL_RET_FAIL);
More information about the varnish-commit
mailing list