From 9a503e1b10a0947bd9c189f06aab994af81e2f40 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 15 Nov 2013 19:47:21 +0100 Subject: [PATCH] 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. --- src/reclists.c | 1 + 1 file changed, 1 insertion(+) 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; -- 1.7.10.4