Commit 013daf98 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Fix query test reversal bug

parent ee749615
......@@ -749,7 +749,7 @@ vslq_callback(struct VSLQ *vslq, struct vtx *vtx, VSLQ_dispatch_f *func,
ptrans[i] = NULL;
/* Query test goes here */
if (vslq->query != NULL && vslq_runquery(vslq->query, ptrans))
if (vslq->query != NULL && !vslq_runquery(vslq->query, ptrans))
return (0);
/* Callback */
......@@ -859,7 +859,7 @@ vslq_raw(struct VSLQ *vslq, VSLQ_dispatch_f *func, void *priv)
trans.vxid = VSL_ID(c->rec.ptr);
/* Query check goes here */
if (vslq->query != NULL && vslq_runquery(vslq->query, ptrans))
if (vslq->query != NULL && !vslq_runquery(vslq->query, ptrans))
continue;
/* Callback */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment