From: Adam Dickmeiss Date: Mon, 20 Oct 2008 07:12:25 +0000 (+0200) Subject: Don't generate ZOOM_EVENT_RECV_SEARCH for SRU record retrievals. X-Git-Tag: v3.0.38~20 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=80849747c53b9c8374e62672aa5f0bc994990389;p=yaz-moved-to-github.git Don't generate ZOOM_EVENT_RECV_SEARCH for SRU record retrievals. The event ZOOM_EVENT_RECV_SEARCH is no longer generated for SRU record retrievals - only for search responses (and an equivalent search task). --- diff --git a/src/zoom-c.c b/src/zoom-c.c index f61eab8..b72a1eb 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -3984,6 +3984,10 @@ static zoom_ret handle_srw_response(ZOOM_connection c, count = &c->tasks->u.search.count; syntax = c->tasks->u.search.syntax; elementSetName = c->tasks->u.search.elementSetName; + + event = ZOOM_Event_create(ZOOM_EVENT_RECV_SEARCH); + ZOOM_connection_put_event(c, event); + break; case ZOOM_TASK_RETRIEVE: resultset = c->tasks->u.retrieve.resultset; @@ -3995,8 +3999,6 @@ static zoom_ret handle_srw_response(ZOOM_connection c, default: return zoom_complete; } - event = ZOOM_Event_create(ZOOM_EVENT_RECV_SEARCH); - ZOOM_connection_put_event(c, event); resultset->size = 0;