Don't generate ZOOM_EVENT_RECV_SEARCH for SRU record retrievals.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 20 Oct 2008 07:12:25 +0000 (09:12 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 20 Oct 2008 07:12:25 +0000 (09:12 +0200)
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

index f61eab8..b72a1eb 100644 (file)
@@ -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;