X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Freclists.c;h=2ba9b4d9afae8135217d1c7b6cae99204c7338e8;hb=6424430743ec2d233dfc8118313cfa4299432e2c;hp=d063c17a968845d96f1948ed5f7c266f5e73b718;hpb=9d9593c47d0ab73b331d85c64e04b516ba9c6a7f;p=pazpar2-moved-to-github.git diff --git a/src/reclists.c b/src/reclists.c index d063c17..2ba9b4d 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2011 Index Data + Copyright (C) 2006-2012 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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;