From fd9f85deb81b577a2442f6360e54ad9076102056 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Oct 2009 16:26:54 +0200 Subject: [PATCH] Fix dump_records for cluster==0 --- src/logic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.10.4