diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-09 02:06:32 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-09 02:06:32 (GMT) |
commit | 6beaf50c8fc861e99b46500b4dc7f606e8f72ffb (patch) | |
tree | f718fce63e96ad19d5cb8aea628a4c4755918aa0 /src/H5Oprivate.h | |
parent | 9437a2686563bda04c9dda9e6c09bb527fe63dd0 (diff) | |
download | hdf5-6beaf50c8fc861e99b46500b4dc7f606e8f72ffb.zip hdf5-6beaf50c8fc861e99b46500b4dc7f606e8f72ffb.tar.gz hdf5-6beaf50c8fc861e99b46500b4dc7f606e8f72ffb.tar.bz2 |
[svn-r8846] Purpose:
Bug fix
Description:
The "shared" raw B-tree node can get freed before all the B-tree nodes
had been flushed out to disk and released by the cache.
Solution:
Implement a simple reference counting wrapper for objects in the library
and use it to hold the shared raw B-tree nodes so they aren't freed before all
references to them in memory are released.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.10 (sleipnir)
IRIX64 6.5 (modei4)
Diffstat (limited to 'src/H5Oprivate.h')
-rw-r--r-- | src/H5Oprivate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h index ec4d7da..a87e52d 100644 --- a/src/H5Oprivate.h +++ b/src/H5Oprivate.h @@ -37,6 +37,7 @@ /* Private headers needed by this file */ #include "H5private.h" /* Generic functions */ #include "H5HGprivate.h" /* Global heap functions */ +#include "H5RCprivate.h" /* Reference counted object functions */ #include "H5Tprivate.h" /* Datatype functions */ #include "H5Zprivate.h" /* I/O pipeline filters */ @@ -133,7 +134,7 @@ typedef struct H5O_layout_chunk_t { unsigned ndims; /* Num dimensions in chunk */ size_t dim[H5O_LAYOUT_NDIMS]; /* Size of chunk in elements */ size_t size; /* Size of chunk in bytes */ - void *raw_page; /* Buffer for raw B-tree page */ + H5RC_t *rc_page; /* Ref-counted buffer for raw B-tree page */ } H5O_layout_chunk_t; typedef struct H5O_layout_compact_t { |