-/* $Id: extract.c,v 1.121 2002-08-28 12:47:10 adam Exp $
+/* $Id: extract.c,v 1.122 2002-08-29 08:47:08 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
#define PRINTF_OFF_T "%ld"
#endif
+#define USE_SHELLSORT 0
+
+#if USE_SHELLSORT
static void shellsort(void *ar, int r, size_t s,
int (*cmp)(const void *a, const void *b))
{
memcpy (a+s*j, v, s);
}
}
-
+#endif
static void logRecord (ZebraHandle zh)
{
if (level & LOG_LOG)
return ;
fprintf (outf, "File %s, offset %d, type %s\n",
- p->rGroup->recordType, p->recordOffset, p->fname);
+ p->fname, p->recordOffset, p->rGroup->recordType);
log_event_start (NULL, NULL);
}
-/* $Id: main.c,v 1.94 2002-08-05 14:08:08 adam Exp $
+/* $Id: main.c,v 1.95 2002-08-29 08:47:08 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
{
if (!zs)
{
+ const char *config = configName ? configName : "zebra.cfg";
logf (LOG_LOG, "Zebra version %s %s",
ZEBRAVER, ZEBRADATE);
- zs = zebra_start (configName ? configName : "zebra.cfg");
+ zs = zebra_start (config);
if (!zs)
+ {
+ yaz_log (LOG_FATAL, "Cannot read config %s", config);
exit (1);
+ }
zh = zebra_open (zs);
if (disableCommit)
zebra_shadow_enable (zh, 0);
-/* $Id: zebraapi.c,v 1.68 2002-08-28 19:52:29 adam Exp $
+/* $Id: zebraapi.c,v 1.69 2002-08-29 08:47:08 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
yaz_log (LOG_LOG, "zebra_start %s", configName);
- if (!(res = res_open (configName, 0)))
- yaz_log (LOG_WARN, "Cannot read resources `%s'", configName);
- else
+ if ((res = res_open (configName, 0)))
{
ZebraService zh = xmalloc (sizeof(*zh));
-/* $Id: zserver.c,v 1.91 2002-08-05 14:08:08 adam Exp $
+/* $Id: zserver.c,v 1.92 2002-08-29 08:47:08 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
sob = statserv_getcontrol ();
if (!(zh = zebra_open (sob->handle)))
{
- yaz_log (LOG_FATAL, "Failed to open config `%s'", sob->configname);
+ yaz_log (LOG_WARN, "Failed to open config `%s'", sob->configname);
r->errcode = 1;
return r;
}