summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-06-10 18:48:09 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-06-10 18:48:09 (GMT)
commit7ce626721c33d1ce3e33cbac963a98a1f42098be (patch)
treee6460970dda5b41652407357cf8fb041efac11d0 /src/H5T.c
parent52fa2f94ca927b2da1478e5cc48d92cd22aca15e (diff)
downloadhdf5-7ce626721c33d1ce3e33cbac963a98a1f42098be.zip
hdf5-7ce626721c33d1ce3e33cbac963a98a1f42098be.tar.gz
hdf5-7ce626721c33d1ce3e33cbac963a98a1f42098be.tar.bz2
[svn-r8646] *** empty log message ***
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/H5T.c b/src/H5T.c
index e3379ec..304536b 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -2727,6 +2727,14 @@ H5T_open (H5G_entry_t *loc, const char *name, hid_t dxpl_id)
/* Open the datatype object */
if ((dt=H5T_open_oid(&ent, dxpl_id)) ==NULL)
HGOTO_ERROR(H5E_DATATYPE, H5E_NOTFOUND, NULL, "not found");
+
+ /* Mark any datatypes as being in memory now */
+ if (H5T_set_loc(dt, NULL, H5T_LOC_MEMORY)<0)
+ HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "invalid datatype location")
+
+ /* Unlock data type */
+ if (H5T_lock (dt, FALSE)<0)
+ HGOTO_ERROR (H5E_DATATYPE, H5E_CANTINIT, NULL, "unable to lock transient data type")
/* Set return value */
ret_value=dt;
@@ -4347,7 +4355,7 @@ done:
USAGE
htri_t H5T_set_loc(dt,f,loc)
H5T_t *dt; IN/OUT: Pointer to the datatype to mark
- H5F_t *dt; IN: Pointer to the file the datatype is in
+ H5F_t *f; IN: Pointer to the file the datatype is in
H5T_vlen_type_t loc IN: location of type
RETURNS