From 80849747c53b9c8374e62672aa5f0bc994990389 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 20 Oct 2008 09:12:25 +0200 Subject: [PATCH] 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). --- src/zoom-c.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 1.7.10.4