summaryrefslogtreecommitdiffstats
path: root/src/H5Oprivate.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-11-05 22:13:43 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-11-05 22:13:43 (GMT)
commitf877f94c13de1df96866aa420496f2c0a9fab60d (patch)
tree79b382ff5bab009122eb3c4f4711fa92283caabd /src/H5Oprivate.h
parentf0124823867f2ce6a807c396a71ef28156c53ed7 (diff)
downloadhdf5-f877f94c13de1df96866aa420496f2c0a9fab60d.zip
hdf5-f877f94c13de1df96866aa420496f2c0a9fab60d.tar.gz
hdf5-f877f94c13de1df96866aa420496f2c0a9fab60d.tar.bz2
[svn-r14238] Bug fix: It's reported by the CGNS people. When an external link was opened twice, the library
had some trouble to close in the end. The problem came from the field "holding_file" of H5O_loc_t. It's used to indicate special links like external links. The fix is to turn it off whenever H5O_open is called. Later the caller function should turn it on when it needs to. Tested on kagiso, linew, and smirom.
Diffstat (limited to 'src/H5Oprivate.h')
-rw-r--r--src/H5Oprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h
index 06c5ebf..31738a9 100644
--- a/src/H5Oprivate.h
+++ b/src/H5Oprivate.h
@@ -533,7 +533,7 @@ struct H5P_genplist_t;
H5_DLL herr_t H5O_init(void);
H5_DLL herr_t H5O_create(H5F_t *f, hid_t dxpl_id, size_t size_hint,
hid_t ocpl_id, H5O_loc_t *loc/*out*/);
-H5_DLL herr_t H5O_open(const H5O_loc_t *loc);
+H5_DLL herr_t H5O_open(H5O_loc_t *loc);
H5_DLL herr_t H5O_close(H5O_loc_t *loc);
H5_DLL int H5O_link(const H5O_loc_t *loc, int adjust, hid_t dxpl_id);
H5_DLL struct H5O_t *H5O_protect(H5O_loc_t *loc, hid_t dxpl_id);