X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Freclists.c;h=5afd0572c486ad1dfc27201e256db35524413012;hb=80655e4b90bbe16ee3e3373ef310267cd5a651a3;hp=817c1339f988ff26b54be4b4ddc756b976cce81d;hpb=d8c3965cc2bb222a012481819c47db36a8a5905b;p=pazpar2-moved-to-github.git diff --git a/src/reclists.c b/src/reclists.c index 817c133..5afd057 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2013 Index Data + Copyright (C) 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 @@ -330,16 +330,19 @@ struct record_cluster *reclist_read_record(struct reclist *l) void reclist_enter(struct reclist *l) { yaz_mutex_enter(l->mutex); - if (l) - l->sorted_ptr = l->sorted_list; + l->sorted_ptr = l->sorted_list; } void reclist_leave(struct reclist *l) { yaz_mutex_leave(l->mutex); - if (l) - l->sorted_ptr = l->sorted_list; + l->sorted_ptr = l->sorted_list; +} + +void reclist_rewind(struct reclist *l) +{ + l->sorted_ptr = l->sorted_list; }