/* 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
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;