X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=isamb%2Ftstisamb.c;h=0c328900ca82edfae30bd9191f2669fa186c3609;hp=72de84acb797154ca50da61b0d2c2a1b56d94471;hb=e2e073b5c947e996304ed7d577497af5e9a879ee;hpb=ac13dceecd5f75669820819575daf88e0add5c8d diff --git a/isamb/tstisamb.c b/isamb/tstisamb.c index 72de84a..0c32890 100644 --- a/isamb/tstisamb.c +++ b/isamb/tstisamb.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + 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 @@ -130,7 +130,7 @@ void tst_insert(ISAMB isb, int n) isamc_i.clientData = &ri; isamc_i.read_item = code_read; - + isamc_p = 0; /* new list */ isamb_merge (isb, &isamc_p , &isamc_i); @@ -174,7 +174,7 @@ void tst_insert(ISAMB isb, int n) isamc_i.clientData = &ri; isamc_i.read_item = code_read; - + isamb_merge (isb, &isamc_p , &isamc_i); /* delete a number of entries (odd ones) */ @@ -187,7 +187,7 @@ void tst_insert(ISAMB isb, int n) isamc_i.clientData = &ri; isamc_i.read_item = code_read; - + isamb_merge (isb, &isamc_p, &isamc_i); if (isamc_p) @@ -216,13 +216,13 @@ void tst_forward(ISAMB isb, int n) 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; iidx >= ri->max) return 0; - + if (ri->delta[ri->idx] > 0) { ri->level++; @@ -357,7 +357,7 @@ void tst_random(ISAMB isb, int n, int rounds, int max_dups) int i, j; for (i = 0; i