[4.1] 9f933fd Maintain `-d` behaviour when log is overrun and reacquired

Federico G. Schwindt fgsch at lodoss.net
Wed Apr 20 11:54:06 CEST 2016


commit 9f933fd22ce99a7d3a1065e78115468f5c053017
Author: Jason Stangroome <jason at codeassassin.com>
Date:   Wed Apr 20 16:13:44 2016 +1000

    Maintain `-d` behaviour when log is overrun and reacquired

diff --git a/lib/libvarnishtools/vut.c b/lib/libvarnishtools/vut.c
index 40d001b..f534266 100644
--- a/lib/libvarnishtools/vut.c
+++ b/lib/libvarnishtools/vut.c
@@ -372,7 +372,8 @@ VUT_Main(void)
 				continue;
 			}
 			c = VSL_CursorVSM(VUT.vsl, VUT.vsm,
-			    VSL_COPT_TAIL | VSL_COPT_BATCH);
+			    (VUT.d_opt ? VSL_COPT_TAILSTOP : VSL_COPT_TAIL)
+			    | VSL_COPT_BATCH);
 			if (c == NULL) {
 				VSL_ResetError(VUT.vsl);
 				VSM_Close(VUT.vsm);



More information about the varnish-commit mailing list