[master] 7b22e04 For a log overrun, we need to get a fresh VSL cursor also
Nils Goroll
nils.goroll at uplex.de
Mon Feb 26 20:57:10 UTC 2018
commit 7b22e04fd870492a927bfb77550c9becae6a53be
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Feb 26 21:41:27 2018 +0100
For a log overrun, we need to get a fresh VSL cursor also
Hopefully fixes #2586
diff --git a/lib/libvarnishapi/vut.c b/lib/libvarnishapi/vut.c
index 86a324b..8da4a85 100644
--- a/lib/libvarnishapi/vut.c
+++ b/lib/libvarnishapi/vut.c
@@ -414,9 +414,11 @@ VUT_Main(struct VUT *vut)
fprintf(stderr, "Log abandoned (vsl)\n");
VSLQ_SetCursor(vut->vslq, NULL);
hascursor = 0;
- } else if (i == vsl_e_overrun)
+ } else if (i == vsl_e_overrun) {
fprintf(stderr, "Log overrun\n");
- else
+ VSLQ_SetCursor(vut->vslq, NULL);
+ hascursor = 0;
+ } else
fprintf(stderr, "Error %d from VSLQ_Dispatch()", i);
}
More information about the varnish-commit
mailing list