From b7a4225d4b5c5e2e375a659e1b7f46717bb3d039 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 12 Oct 2011 13:15:47 +0200 Subject: [PATCH] sort: only skip "identical" records from same target --- src/reclists.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4