From: Adam Dickmeiss Date: Fri, 9 Oct 2009 14:26:54 +0000 (+0200) Subject: Fix dump_records for cluster==0 X-Git-Tag: v1.2.2~14^2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=fd9f85deb81b577a2442f6360e54ad9076102056;p=pazpar2-moved-to-github.git Fix dump_records for cluster==0 --- diff --git a/src/logic.c b/src/logic.c index 3ce3091..db5b06d 100644 --- a/src/logic.c +++ b/src/logic.c @@ -1089,15 +1089,15 @@ struct record *ingest_record(struct client *cl, const char *rec, service, record, (char *) mergekey_norm, &se->total_merged); - if (global_parameters.dump_records) - yaz_log(YLOG_LOG, "Cluster id %s from %s (#%d)", cluster->recid, - sdb->database->url, record_no); if (!cluster) { /* no room for record */ xmlFreeDoc(xdoc); return 0; } + if (global_parameters.dump_records) + yaz_log(YLOG_LOG, "Cluster id %s from %s (#%d)", cluster->recid, + sdb->database->url, record_no); relevance_newrec(se->relevance, cluster); // now parsing XML record and adding data to cluster or record metadata