From: Adam Dickmeiss Date: Mon, 24 Dec 2012 10:32:33 +0000 (+0100) Subject: Fix problem with blocked show X-Git-Tag: v1.6.24~9 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1003956798f3820c5b47ac6d20b8375ee0786788;p=pazpar2-moved-to-github.git 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, ..). --- 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;