projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a8d9b1
)
Allow frontend server to stop (for debugging purposes)
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 15 Jan 2004 10:04:39 +0000
(10:04 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 15 Jan 2004 10:04:39 +0000
(10:04 +0000)
ztest/ztest.c
patch
|
blob
|
history
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
4795ee6
..
a92a335
100644
(file)
--- a/
ztest/ztest.c
+++ b/
ztest/ztest.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1995-2003, Index Data.
* 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.60 2004-01-15 10:04:39 adam Exp $
*/
/*
*/
/*
@@
-34,6
+34,13
@@
int ztest_search (void *handle, bend_search_rr *rr)
rr->errcode = 23;
return 0;
}
rr->errcode = 23;
return 0;
}
+ /* 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);
+ }
+ /* 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;