Commit 44922267 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Apply VSL_Match on records.

This allows using the -ixIX options to filter which records are counted.
parent 316d15b3
...@@ -120,12 +120,14 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[], ...@@ -120,12 +120,14 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
unsigned tag; unsigned tag;
const char *b, *e, *p; const char *b, *e, *p;
unsigned len; unsigned len;
struct VSL_transaction *tr;
(void)vsl;
(void)priv; (void)priv;
struct VSL_transaction *tr;
for (tr = pt[0]; tr != NULL; tr = *++pt) { for (tr = pt[0]; tr != NULL; tr = *++pt) {
while ((1 == VSL_Next(tr->c))) { while ((1 == VSL_Next(tr->c))) {
if (!VSL_Match(vsl, tr->c))
continue;
tag = VSL_TAG(tr->c->rec.ptr); tag = VSL_TAG(tr->c->rec.ptr);
b = VSL_CDATA(tr->c->rec.ptr); b = VSL_CDATA(tr->c->rec.ptr);
len = VSL_LEN(tr->c->rec.ptr); len = VSL_LEN(tr->c->rec.ptr);
......
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