From: Dennis Schafroth Date: Tue, 17 Apr 2012 15:31:31 +0000 (+0200) Subject: Comments X-Git-Tag: v1.6.13~46 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1f62a30438d68b1087212c7e0fb942acbd5a1e6c;p=pazpar2-moved-to-github.git Comments --- 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;