diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-06-11 21:06:29 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-06-11 21:06:29 (GMT) |
commit | 8735902ea3fd111e2a8924b4516b701659259cf4 (patch) | |
tree | 6fb0ca23f62d27793dc5aa0a442c43ff7ed0adde /src/H5T.c | |
parent | 2a59a4ca3d1a165fd62c3a76e38f194124d00839 (diff) | |
download | hdf5-8735902ea3fd111e2a8924b4516b701659259cf4.zip hdf5-8735902ea3fd111e2a8924b4516b701659259cf4.tar.gz hdf5-8735902ea3fd111e2a8924b4516b701659259cf4.tar.bz2 |
[svn-r8663] *** empty log message ***
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2744,6 +2744,14 @@ H5T_open (H5G_entry_t *loc, const char *name, hid_t dxpl_id) 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_vlen_mark(dt, NULL, H5T_VLEN_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; |