* Copyright (C) 1995-2002, Index Data
* All rights reserved.
*
- * $Id: zebraapi.c,v 1.52 2002-04-04 20:50:37 adam Exp $
+ * $Id: zebraapi.c,v 1.54 2002-04-05 12:49:51 adam Exp $
*/
#include <assert.h>
reg->sortIdx = 0;
reg->isams = 0;
reg->matchDict = 0;
-#if ZMBOL
reg->isam = 0;
reg->isamc = 0;
reg->isamd = 0;
-#endif
reg->zei = 0;
reg->matchDict = 0;
return 0;
}
}
-#if ZMBOL
else if (res_get_match (res, "isam", "i", ISAM_DEFAULT))
{
if (!(reg->isam = is_open (reg->bfs, FNAME_ISAM, key_compare, rw,
return 0;
}
}
-#endif
reg->zei = zebraExplain_open (reg->records, reg->dh,
res, rw, reg,
explain_extract);
sortIdx_close (reg->sortIdx);
if (reg->isams)
isams_close (reg->isams);
-#if ZMBOL
if (reg->isam)
is_close (reg->isam);
if (reg->isamc)
isc_close (reg->isamc);
if (reg->isamd)
isamd_close (reg->isamd);
-#endif
rec_close (®->records);
}
{
int i;
const char *cp;
- size_t len = 0;
+ int len = 0;
char *new_reg = 0;
if (num_bases < 1)
zh->errCode = 23;
return -1;
}
- if (len != cp - basenames[i] ||
+ if (len != cp1 - basenames[i] ||
memcmp (basenames[i], new_reg, len))
{
zh->errCode = 23;
zebra_set_state (zh, 'c', seqno);
logf (LOG_LOG, "commit start");
+#ifndef WIN32
sleep (2);
+#endif
bf_commitExec (bfs);
#ifndef WIN32
sync ();