* Copyright (C) 1995-2002, Index Data
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss, Heikki Levanto
- * $Id: index.h,v 1.79 2002-04-12 14:55:22 adam Exp $
+ * $Id: index.h,v 1.80 2002-04-15 13:48:10 adam Exp $
*/
#ifndef INDEX_H
struct tms tms2;
#endif
struct recordGroup rGroup;
+ int shadow_enable;
};
struct rank_control {
* Copyright (C) 1994-2002, Index Data
* All rights reserved.
*
- * $Id: main.c,v 1.85 2002-04-05 08:46:26 adam Exp $
+ * $Id: main.c,v 1.86 2002-04-15 13:48:10 adam Exp $
*/
#include <stdio.h>
#include <string.h>
if (!zs)
exit (1);
zh = zebra_open (zs);
+ if (disableCommit)
+ zebra_shadow_enable (zh, 0);
}
if (rGroupDef.databaseName)
{
* Copyright (C) 1995-2002, Index Data
* All rights reserved.
*
- * $Id: zebraapi.c,v 1.54 2002-04-05 12:49:51 adam Exp $
+ * $Id: zebraapi.c,v 1.55 2002-04-15 13:48:11 adam Exp $
*/
#include <assert.h>
zh->admin_databaseName = 0;
+ zh->shadow_enable = 1;
+
zebra_mutex_cond_lock (&zs->session_lock);
zh->next = zs->sessions;
int pass;
int seqno = 0;
char val = '?';
- const char *rval;
+ const char *rval = 0;
assert (zh->res);
#endif
/* lock */
- rval = res_get (zh->res, "shadow");
+ if (zh->shadow_enable)
+ rval = res_get (zh->res, "shadow");
for (pass = 0; pass < 2; pass++)
{
*addinfo = zh->errString;
}
+void zebra_shadow_enable (ZebraHandle zh, int value)
+{
+ zh->shadow_enable = value;
+}
+
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
- * $Id: zebraapi.h,v 1.14 2002-04-04 14:14:13 adam Exp $
+ * $Id: zebraapi.h,v 1.15 2002-04-15 13:48:11 adam Exp $
*/
#ifndef ZEBRAAPI_H
YAZ_EXPORT
int zebra_select_database (ZebraHandle zh, const char *basename);
-
+YAZ_EXPORT
+void zebra_shadow_enable (ZebraHandle zh, int value);
YAZ_END_CDECL
#endif