sort: only skip "identical" records from same target
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 12 Oct 2011 11:15:47 +0000 (13:15 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 12 Oct 2011 11:15:47 +0000 (13:15 +0200)
src/reclists.c

index d063c17..6ac71cd 100644 (file)
@@ -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;