From 1003956798f3820c5b47ac6d20b8375ee0786788 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 24 Dec 2012 11:32:33 +0100 Subject: [PATCH] Fix problem with blocked show Make sure that reclist_get_num_records returns >0 result if record list is non empty. This is to ensure that client_got_records fires session watches (SESSIN_WATCH_SHOW, ..). --- src/reclists.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reclists.c b/src/reclists.c index 7662561..366ccae 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -414,6 +414,7 @@ struct record_cluster *reclist_insert(struct reclist *l, cluster->relevance_explain2 = wrbuf_alloc(); /* attach to hash list */ *p = new; + l->num_records++; } yaz_mutex_leave(l->mutex); return cluster; -- 1.7.10.4