summaryrefslogtreecommitdiffstats
path: root/src/H5B.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-10-21 15:43:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-10-21 15:43:42 (GMT)
commitb4efcabc8a0158dcde129a36fb2848f96b602ded (patch)
tree72fbecf6d42d8a1318cc787570536a9b0d7f810a /src/H5B.c
parentd1117ac78c622908b4749218a991388d64f01f31 (diff)
downloadhdf5-b4efcabc8a0158dcde129a36fb2848f96b602ded.zip
hdf5-b4efcabc8a0158dcde129a36fb2848f96b602ded.tar.gz
hdf5-b4efcabc8a0158dcde129a36fb2848f96b602ded.tar.bz2
[svn-r19657] Description:
Bring r19656 from trunk to 1.8 branch: Move B-tree sanity checking down below revised node unprotect calls in H5B_insert(). Tested on: Mac OS X/32 10.6.4 (amazon) w/debug=all (too obscure to require h5committest)
Diffstat (limited to 'src/H5B.c')
-rw-r--r--src/H5B.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/H5B.c b/src/H5B.c
index 253c95e..9bc7a31 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -677,10 +677,6 @@ H5B_insert(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
if(H5AC_insert_entry(f, dxpl_id, H5AC_BT, addr, new_root_bt, H5AC__NO_FLAGS_SET) < 0)
HGOTO_ERROR(H5E_BTREE, H5E_CANTFLUSH, FAIL, "unable to add old B-tree root node to cache")
-#ifdef H5B_DEBUG
- H5B_assert(f, dxpl_id, addr, type, udata);
-#endif
-
done:
if(ret_value < 0)
if(new_root_bt && H5B_node_dest(new_root_bt) < 0)
@@ -694,6 +690,11 @@ done:
if(H5AC_unprotect(f, dxpl_id, H5AC_BT, split_bt_ud.addr, split_bt_ud.bt, split_bt_ud.cache_flags) < 0)
HDONE_ERROR(H5E_BTREE, H5E_CANTUNPROTECT, FAIL, "unable to unprotect new child")
+#ifdef H5B_DEBUG
+ if(ret_value >= 0)
+ H5B_assert(f, dxpl_id, addr, type, udata);
+#endif
+
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5B_insert() */