[4.1] abc099d improve FetchError message

Lasse Karstensen lkarsten at varnish-software.com
Thu Feb 25 15:11:14 CET 2016


commit abc099de31c7bbd4b6e0eef05af31920faf0e627
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Feb 17 14:34:01 2016 +0100

    improve FetchError message

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index e03d5c2..52623f9 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -537,7 +537,7 @@ vbf_fetch_body_helper(struct busyobj *bo)
 #define vbf_vfp_push(bo, vfp, top)					\
 	if (VFP_Push((bo)->vfc, (vfp), (top)) == NULL) {		\
 		assert (WS_Overflowed((bo)->vfc->http->ws));		\
-		(void)VFP_Error((bo)->vfc, "Bo workspace overflowed");	\
+		(void)VFP_Error((bo)->vfc, "workspace_backend overflow"); \
 		(bo)->htc->doclose = SC_OVERLOAD;			\
 		VDI_Finish((bo)->wrk, bo);				\
 		return (F_STP_ERROR);					\
diff --git a/bin/varnishtest/tests/r01739.vtc b/bin/varnishtest/tests/r01739.vtc
index 5b80f1e..21398cc 100644
--- a/bin/varnishtest/tests/r01739.vtc
+++ b/bin/varnishtest/tests/r01739.vtc
@@ -16,7 +16,7 @@ varnish v1 \
 } -start
 
 logexpect l1 -v v1 -g raw {
-	expect * 1002 FetchError {^Bo workspace overflowed}
+	expect * 1002 FetchError {^workspace_backend overflow}
 	expect * =    Error      {^out of workspace [(]Bo[)]}
 } -start
 



More information about the varnish-commit mailing list