[master] 8098866 Fix logexpect cursor creation to use the proper cursor options

Martin Blix Grydeland martin at varnish-software.com
Mon Sep 1 14:01:50 CEST 2014


commit 809886601fd77bc95faf65be82aade61dc0a5bfa
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Mon Sep 1 13:06:22 2014 +0200

    Fix logexpect cursor creation to use the proper cursor options

diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index 48c8f3d..d868a1b 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -330,7 +330,7 @@ logexp_start(struct logexp *le)
 	}
 	le->vsl = VSL_New();
 	AN(le->vsl);
-	c = VSL_CursorVSM(le->vsl, le->vsm, !le->d_arg);
+	c = VSL_CursorVSM(le->vsl, le->vsm, le->d_arg ? 0 : VSL_COPT_TAIL);
 	if (c == NULL) {
 		vtc_log(le->vl, 0, "VSL_CursorVSM: %s", VSL_Error(le->vsl));
 		logexp_close(le);



More information about the varnish-commit mailing list