X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fclient.c;h=d337ffe8b1cdf74384c428a80580001b66fb5053;hb=4193aa864cbf4f36d264179f9be1999ce74e77e6;hp=b4d323eb4ec2c90215c24d364a0bb646d61f143e;hpb=35326727916ab3dcfbf57bc6ab05c31a97aebd74;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index b4d323e..d337ffe 100644 --- a/src/client.c +++ b/src/client.c @@ -417,6 +417,15 @@ void client_search_response(struct client *cl) } } +void client_got_records(struct client *cl) +{ + if (cl->session) + { + session_alert_watch(cl->session, SESSION_WATCH_SHOW); + session_alert_watch(cl->session, SESSION_WATCH_RECORD); + } +} + void client_record_response(struct client *cl) { struct connection *co = cl->connection; @@ -478,11 +487,6 @@ void client_record_response(struct client *cl) if (ingest_record(cl, xmlrec, cl->record_offset, nmem)) yaz_log(YLOG_WARN, "Failed to ingest from %s", client_get_url(cl)); - else - { - session_alert_watch(cl->session, SESSION_WATCH_SHOW); - session_alert_watch(cl->session, SESSION_WATCH_RECORD); - } } nmem_destroy(nmem); } @@ -598,14 +602,14 @@ struct client *client_create(void) void client_incref(struct client *c) { pazpar2_incref(&c->ref_count, c->mutex); - yaz_log(YLOG_LOG, "client_incref %s %d", client_get_url(c), c->ref_count); + yaz_log(YLOG_DEBUG, "client_incref %s %d", client_get_url(c), c->ref_count); } int client_destroy(struct client *c) { if (c) { - yaz_log(YLOG_LOG, "client_destroy %s %d", + yaz_log(YLOG_DEBUG, "client_destroy %s %d", client_get_url(c), c->ref_count); if (!pazpar2_decref(&c->ref_count, c->mutex)) {