-/* $Id: tstisamb.c,v 1.28 2007-01-15 15:10:17 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#if HAVE_SYS_TIMES_H
#include <sys/times.h>
#endif
isamc_i.clientData = &ri;
isamc_i.read_item = code_read;
-
+
isamc_p = 0; /* new list */
isamb_merge (isb, &isamc_p , &isamc_i);
isamc_i.clientData = &ri;
isamc_i.read_item = code_read;
-
+
isamb_merge (isb, &isamc_p , &isamc_i);
/* delete a number of entries (odd ones) */
isamc_i.clientData = &ri;
isamc_i.read_item = code_read;
-
+
isamb_merge (isb, &isamc_p, &isamc_i);
if (isamc_p)
isamc_i.clientData = &ri;
isamc_i.read_item = code_read;
-
+
isamc_p = 0;
isamb_merge (isb, &isamc_p, &isamc_i);
/* read the entries */
pp = isamb_pp_open (isb, isamc_p, 1);
-
+
for (i = 0; i<ri.max; i +=2 )
{
int x = -1;
ri.no++;
}
isamb_pp_close(pp);
-
+
pp = isamb_pp_open (isb, isamc_p, 1);
for (i = 0; i<ri.max; i += 100)
{
ri.val = 0;
ri.step = 1;
ri.insertMode = 1;
-
+
isamc_i.clientData = &ri;
isamc_i.read_item = code_read;
-
+
isamb_merge (isb, &isamb_p , &isamc_i);
}
}
}
if (ri->idx >= ri->max)
return 0;
-
+
if (ri->delta[ri->idx] > 0)
{
ri->level++;
int i, j;
for (i = 0; i<n; i++)
freq[i] = 0;
-
+
for (j = 0; j<rounds; j++)
{
yaz_log(YLOG_DEBUG, "round %d", j);
{
ISAMC_I isamc_i;
struct random_read_info ri;
-
+
ri.delta = delta;
ri.idx = 0;
ri.max = n;
ri.level = 0;
-
+
isamc_i.clientData = &ri;
isamc_i.read_item = tst_random_read;
isamb_merge (isb, &isamb_p , &isamc_i);
}
-
+
yaz_log(YLOG_DEBUG, "dump %d", j);
isamb_dump(isb, isamb_p, log_pr);
isamc_i.clientData = &ri;
/* all have same value = 1 */
- ri.val = 1;
+ ri.val = 1;
ri.step = 0;
isamc_i.read_item = code_read;
isamb_merge (isb, &isamb_p , &isamc_i);
isamb_dump(isb, isamb_p, log_pr);
-
+
ri.no = 0;
ri.max = n - n/2;
BFiles bfs;
ISAMB isb;
ISAMC_M method;
-
+
if (argc == 2)
yaz_log_init_level(YLOG_ALL);
-
+
/* setup method (attributes) */
method.compare_item = compare_item;
method.log_item = log_item;
if (0)
identical_keys_tests(isb);
-
+
isamb_close(isb);
/* exit block system */
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab