X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fztest.c;h=bd4459e8dd06cf01f8348bb4a94e6fd62fc77bb7;hb=06151390083d3f8875bf7ed4b113942f6cccf9f4;hp=a92a33539280f52343513775433b74801dee267a;hpb=b9c35fd3860882cc3804a4a9d69bec9b96099c57;p=yaz-moved-to-github.git diff --git a/ztest/ztest.c b/ztest/ztest.c index a92a335..bd4459e 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2003, Index Data. + * Copyright (c) 1995-2004, Index Data. * See the file LICENSE for details. * - * $Id: ztest.c,v 1.60 2004-01-15 10:04:39 adam Exp $ + * $Id: ztest.c,v 1.62 2004-01-27 21:22:44 adam Exp $ */ /* @@ -34,12 +34,14 @@ int ztest_search (void *handle, bend_search_rr *rr) rr->errcode = 23; return 0; } - /* if database is stop, stop this process.. For debugging only. +#if NMEM_DEBUG + /* if database is stop, stop this process.. For debugging only. */ if (!yaz_matchstr (rr->basenames[0], "stop")) { nmem_print_list_l(LOG_LOG); exit(0); } +#endif /* Throw Database unavailable if other than Default */ if (yaz_matchstr (rr->basenames[0], "Default")) { @@ -435,7 +437,7 @@ int ztest_present (void *handle, bend_present_rr *rr) int ztest_fetch(void *handle, bend_fetch_rr *r) { char *cp; - r->errstring = 0; + r->last_in_set = 0; r->basename = "Default"; r->output_format = r->request_format;