diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-10-15 22:26:46 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-10-15 22:26:46 (GMT) |
commit | 3dd3756ea1f1ead111abb8e4f2ab7e1f3a64582e (patch) | |
tree | 2859bfde0469c459da8261e311c9ba6bc8d90b02 /src/H5B2hdr.c | |
parent | 21518fd05a3777c20c69ce214a2f6da54ae8dfe0 (diff) | |
download | hdf5-3dd3756ea1f1ead111abb8e4f2ab7e1f3a64582e.zip hdf5-3dd3756ea1f1ead111abb8e4f2ab7e1f3a64582e.tar.gz hdf5-3dd3756ea1f1ead111abb8e4f2ab7e1f3a64582e.tar.bz2 |
[svn-r17657] Description:
Refactor the v2 B-tree code to use an open & close call internally, in
preparation for making those part of the library private APIs for dealing with
v2 B-trees.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.1 (amazon) in debug mode
Mac OS X/32 10.6.1 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
Diffstat (limited to 'src/H5B2hdr.c')
-rw-r--r-- | src/H5B2hdr.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/H5B2hdr.c b/src/H5B2hdr.c index 7180d99..04b648c 100644 --- a/src/H5B2hdr.c +++ b/src/H5B2hdr.c @@ -118,6 +118,7 @@ H5B2_hdr_init(H5F_t *f, H5B2_t *bt2, const H5B2_class_t *type, /* Initialize basic information */ bt2->f = f; bt2->rc = 0; + bt2->pending_delete = FALSE; /* Assign dynamic information */ bt2->depth = depth; @@ -361,3 +362,31 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5B2_hdr_dirty() */ + +/*------------------------------------------------------------------------- + * Function: H5B2_hdr_delete + * + * Purpose: Mark B-tree header for deletion + * + * Return: Non-negative on success/Negative on failure + * + * Programmer: Quincey Koziol + * koziol@hdfgroup.org + * Oct 15 2009 + * + *------------------------------------------------------------------------- + */ +herr_t +H5B2_hdr_delete(H5B2_t *bt2) +{ + FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5B2_hdr_delete) + + /* Sanity check */ + HDassert(bt2); + + /* Mark B-tree header as pending deletion */ + bt2->pending_delete = TRUE; + + FUNC_LEAVE_NOAPI(SUCCEED) +} /* end H5B2_hdr_delete() */ + |