X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Fisamb.c;h=5627af468ec48f97401ebf6b66a2d9a126d06e01;hb=3e72747f4b28856e5f684dbe8984f8fb28680e62;hp=4f55b02d895408bc5b57fa7d7940098bb4c3672f;hpb=adfd6d1b6afa9964e4483a16dcf8c2f64d20989a;p=idzebra-moved-to-github.git diff --git a/isamb/isamb.c b/isamb/isamb.c index 4f55b02..5627af4 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-1998, Index Data. + * Copyright (c) 2000-2002, Index Data. * See the file LICENSE for details. * - * $Id: isamb.c,v 1.8 2002-04-23 13:39:10 adam Exp $ + * $Id: isamb.c,v 1.10 2002-04-26 08:44:47 adam Exp $ */ #include #include @@ -283,8 +283,6 @@ int insert_int (ISAMB b, struct ISAMB_block *p, void *lookahead_item, (*sp)->size = endp - src; memcpy ((*sp)->bytes, src, (*sp)->size); - yaz_log (LOG_LOG, "i split %d -> %d %d", - p->size, p_new_size, (*sp)->size); p->size = p_new_size; } p->dirty = 1; @@ -372,7 +370,7 @@ int insert_leaf (ISAMB b, struct ISAMB_block **sp1, void *lookahead_item, if (max_item && (*b->method->compare_item)(max_item, lookahead_item) <= 0) { - assert (0); + yaz_log (LOG_LOG, "max_item 1"); lookahead_item = 0; } @@ -412,7 +410,7 @@ int insert_leaf (ISAMB b, struct ISAMB_block **sp1, void *lookahead_item, if (max_item && (*b->method->compare_item)(max_item, lookahead_item) <= 0) { - assert (0); + yaz_log (LOG_LOG, "max_item 2"); break; } if (!half1 && dst > cut) @@ -492,8 +490,6 @@ int insert_leaf (ISAMB b, struct ISAMB_block **sp1, void *lookahead_item, p->dirty = 1; memcpy (sub_item, cut_item_buf, cut_item_size); *sub_size = cut_item_size; - - yaz_log (LOG_LOG, "l split %d / %d", p->size, (*sp2)->size); } else {