yaz-ztest: fix bad usage of session handle
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Aug 2012 10:55:12 +0000 (12:55 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Aug 2012 10:55:12 +0000 (12:55 +0200)
Bug was introduced when result sets were saved (271a9c83).

ztest/ztest.c

index 97b8e79..c2b3abd 100644 (file)
@@ -418,13 +418,6 @@ int ztest_search(void *handle, bend_search_rr *rr)
 /* this huge function handles extended services */
 int ztest_esrequest(void *handle, bend_esrequest_rr *rr)
 {
-    /* user-defined handle - created in bend_init */
-    int *counter = (int*) handle;  
-
-    yaz_log(log_level, "ESRequest no %d", *counter);
-
-    (*counter)++;
-
     if (rr->esr->packageName)
         yaz_log(log_level, "packagename: %s", rr->esr->packageName);
     yaz_log(log_level, "Waitaction: " ODR_INT_PRINTF, *rr->esr->waitAction);