[Tux3] [PATCH 05/10] Use ->entries_per_leaf in ileaf_split
OGAWA Hirofumi
hirofumi at mail.parknet.co.jp
Fri Oct 17 02:43:39 PDT 2008
---
user/test/ileaf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN user/test/ileaf.c~ileaf-split-use-entries_per_leaf user/test/ileaf.c
--- tux3/user/test/ileaf.c~ileaf-split-use-entries_per_leaf 2008-10-16 01:20:43.000000000 +0900
+++ tux3-hirofumi/user/test/ileaf.c 2008-10-16 01:20:43.000000000 +0900
@@ -193,7 +193,7 @@ tuxkey_t ileaf_split(BTREE, tuxkey_t inu
*(destdict - i) -= split;
#ifdef SPLIT_AT_INUM
/* round down to multiple of 64 above ibase */
- inum_t round = inum & ~0x3fULL;
+ inum_t round = inum & ~(inum_t)(btree->entries_per_leaf - 1);
dest->ibase = round > leaf->ibase + leaf->count ? round : inum;
#else
dest->ibase = leaf->ibase + at;
_
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list