Mailing List Archive

[master] b64cb1ec0 Centralize VFP storage error log
commit b64cb1ec0c287a894513709061309140dcb42a74
Author: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
Date: Wed May 27 14:54:51 2020 +0200

Centralize VFP storage error log

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index 2924a9448..277a52e4d 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -169,7 +169,7 @@ vbf_beresp2obj(struct busyobj *bo)
if (vary != NULL)
VSB_destroy(&vary);
AZ(vary);
- return (-1);
+ return (VFP_Error(bo->vfc, "Could not get storage"));
}

if (vary != NULL) {
@@ -617,7 +617,6 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
}

if (vbf_beresp2obj(bo)) {
- (void)VFP_Error(bo->vfc, "Could not get storage");
bo->htc->doclose = SC_RX_BODY;
vbf_cleanup(bo);
return (F_STP_ERROR);
@@ -760,7 +759,6 @@ vbf_stp_condfetch(struct worker *wrk, struct busyobj *bo)
AZ(stale_oc->flags & OC_F_FAILED);

if (vbf_beresp2obj(bo)) {
- (void)VFP_Error(bo->vfc, "Could not get storage in vbf_stp_condfetch");
vbf_cleanup(bo);
wrk->stats->fetch_failed++;
return (F_STP_FAIL);
@@ -897,7 +895,6 @@ vbf_stp_error(struct worker *wrk, struct busyobj *bo)
assert(bo->vfc->req == bo->bereq);

if (vbf_beresp2obj(bo)) {
- (void)VFP_Error(bo->vfc, "Could not get storage");
VSB_destroy(&synth_body);
return (F_STP_FAIL);
}
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit