From: Adam Dickmeiss Date: Wed, 12 Oct 2011 11:15:47 +0000 (+0200) Subject: sort: only skip "identical" records from same target X-Git-Tag: v1.6.4~5^2~8 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=b7a4225d4b5c5e2e375a659e1b7f46717bb3d039;p=pazpar2-moved-to-github.git sort: only skip "identical" records from same target --- diff --git a/src/reclists.c b/src/reclists.c index d063c17..6ac71cd 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -318,7 +318,8 @@ struct record_cluster *reclist_insert(struct reclist *l, for (; re; re = re->next) { - if (record_compare(record, re, service)) + if (re->client == record->client && + record_compare(record, re, service)) { yaz_mutex_leave(l->mutex); return 0;