From: Adam Dickmeiss Date: Fri, 15 Nov 2013 18:47:21 +0000 (+0100) Subject: Fix 'Record Missing' PAZ-903 X-Git-Tag: v1.6.37~1 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=9a503e1b10a0947bd9c189f06aab994af81e2f40 Fix 'Record Missing' PAZ-903 The problem was that the sorted_next is not updated when a new cluster is added. This resets sorted_list and sorted_ptr which makes reclist_limit re-make the sorted_list again. --- diff --git a/src/reclists.c b/src/reclists.c index 8ef9ba4..b16a60e 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -414,6 +414,7 @@ struct record_cluster *reclist_insert(struct reclist *l, /* attach to hash list */ *p = new; l->num_records++; + l->sorted_list = l->sorted_ptr = 0; } yaz_mutex_leave(l->mutex); return cluster;