projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix use of strcasecmp for WIN32
[yaz-moved-to-github.git]
/
ztest
/
ztest.c
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
4795ee6
..
bd4459e
100644
(file)
--- 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.
*
* See the file LICENSE for details.
*
- * $Id: ztest.c,v 1.59 2003-12-29 14:54:33 adam Exp $
+ * $Id: ztest.c,v 1.62 2004-01-27 21:22:44 adam Exp $
*/
/*
*/
/*
@@
-34,6
+34,15
@@
int ztest_search (void *handle, bend_search_rr *rr)
rr->errcode = 23;
return 0;
}
rr->errcode = 23;
return 0;
}
+#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"))
{
rr->errcode = 109;
if (yaz_matchstr (rr->basenames[0], "Default"))
{
rr->errcode = 109;
@@
-428,7
+437,7
@@
int ztest_present (void *handle, bend_present_rr *rr)
int ztest_fetch(void *handle, bend_fetch_rr *r)
{
char *cp;
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;
r->last_in_set = 0;
r->basename = "Default";
r->output_format = r->request_format;