From 1f62a30438d68b1087212c7e0fb942acbd5a1e6c Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 17 Apr 2012 17:31:31 +0200 Subject: [PATCH] Comments --- src/session.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/session.c b/src/session.c index 76b43fe..4b2e5aa 100644 --- a/src/session.c +++ b/src/session.c @@ -1587,6 +1587,7 @@ int ingest_record(struct client *cl, const char *rec, return ret; } +// Skip record on non-zero static int check_limit_local(struct client *cl, struct record *record, int record_no) @@ -1634,10 +1635,10 @@ static int check_limit_local(struct client *cl, } else { - yaz_log(YLOG_LOG, "cmp: '%s' '%s'", - rec_md->data.text.disp, values[i]); + yaz_log(YLOG_LOG, "cmp: '%s' '%s'", rec_md->data.text.disp, values[i]); if (!strcmp(rec_md->data.text.disp, values[i])) { + // Value equals, should not be filtered. break; } } @@ -1649,6 +1650,7 @@ static int check_limit_local(struct client *cl, i++; } } + // At end , not match if (i == num_v) { skip_record = 1; -- 1.7.10.4