X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=c37df0530a084c415d50e624ff4714735b6a94e4;hb=500505a8413687c67b6be99ff1ae9c1460d35e25;hp=0d9d8156d621f6964ef18708270e48ae490bc715;hpb=3726bf6622da6a8b983bb4cbb7d654e84c3216d7;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 0d9d815..c37df05 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zebraapi.c,v $ - * Revision 1.21 1999-07-14 10:59:26 adam + * Revision 1.23 1999-09-07 11:36:32 adam + * Minor changes. + * + * Revision 1.22 1999/08/02 10:13:47 adam + * Fixed bug regarding zebra_hits. + * + * Revision 1.21 1999/07/14 10:59:26 adam * Changed functions isc_getmethod, isams_getmethod. * Improved fatal error handling (such as missing EXPLAIN schema). * @@ -112,7 +118,6 @@ static int zebra_register_lock (ZebraHandle zh) zh->errCode = 0; zh->errString = 0; - zh->hits = 0; zebra_chdir (zh); @@ -331,7 +336,6 @@ void zebra_close (ZebraHandle zh) passwd_db_close (zh->passwd_db); res_close (zh->res); xfree (zh); - xmalloc_trav("x"); } struct map_baseinfo { @@ -406,6 +410,7 @@ void zebra_search_rpn (ZebraHandle zh, ODR stream, ODR decode, Z_RPNQuery *query, int num_bases, char **basenames, const char *setname) { + zh->hits = 0; if (zebra_register_lock (zh)) return; map_basenames (zh, stream, &num_bases, &basenames);