[4.0] d2d17a6 Fix logexpect cursor creation to use the proper cursor options

Martin Blix Grydeland martin at varnish-software.com
Tue Sep 9 14:54:33 CEST 2014


commit d2d17a64cae5c5c0c3f3fa10617c4e27303996c0
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