From 164b8083f0cb3bdcc90d0aceb6ae63c58355c0b8 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 12 Nov 2001 15:03:30 -0500 Subject: [svn-r4600] Purpose: Bug fix. Description: The internal B-tree code was dumping core with an assertion failure when flushing data to the file if too many objects were put into the same B-tree (forcing the root node to split, I think). Solution: Fixed the B-tree copy routine to copy the correct number of raw keys. Platforms tested: FreeBSD 4.4 (hawkwind), Solaris 2.6 (baldric) --- src/H5B.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5B.c b/src/H5B.c index dd8e388..5a6d2f3 100644 --- a/src/H5B.c +++ b/src/H5B.c @@ -2139,7 +2139,7 @@ H5B_copy(H5F_t *f, const H5B_t *old_bt) * Translate the keys from pointers into the old 'page' buffer into * pointers into the new 'page' buffer. */ - for (u = 0; u < nkeys; u++) + for (u = 0; u < (nkeys+1); u++) ret_value->key[u].rkey = (old_bt->key[u].rkey - old_bt->page) + ret_value->page; done: -- cgit v0.12