X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.c;h=d81129028233bf17007c14179e8089e9d3035527;hb=c54c13591e29fa5c3ed08df780301c266bcee8e7;hp=5d34aa47a3502e3809e3caf0c99b9cefe32aec8b;hpb=942a772d08b2e0eb14ad66549daa08bbb0c1fe94;p=pazpar2-moved-to-github.git diff --git a/src/session.c b/src/session.c index 5d34aa4..d811290 100644 --- a/src/session.c +++ b/src/session.c @@ -1581,7 +1581,8 @@ int ingest_record(struct client *cl, const char *rec, } static int check_limit_local(struct client *cl, - struct record *record) + struct record *record, + int record_no) { int skip_record = 0; struct session *se = client_get_session(cl); @@ -1611,6 +1612,7 @@ static int check_limit_local(struct client *cl, } ser_md = &service->metadata[md_field_id]; rec_md = record->metadata[md_field_id]; + yaz_log(YLOG_LOG, "check limit local %s", name); for (i = 0; i < num_v; ) { if (rec_md) @@ -1723,7 +1725,7 @@ static int ingest_to_cluster(struct client *cl, } } - if (check_limit_local(cl, record)) + if (check_limit_local(cl, record, record_no)) { session_log(se, YLOG_LOG, "Facet filtered out record no %d from %s", record_no, sdb->database->id);