summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-06-24 22:19:09 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-06-24 22:19:09 (GMT)
commit29cb102f121f79c2a678f036ff211a8bad91517f (patch)
treec72e468f88cc1139c395b2ddf0d87e01cabdc7ac /src/H5T.c
parent75aa26981b4becc6926f4100707d9614e84a041c (diff)
parentf410d5d842edfb8a3b4aea4cd72ff67cb0e5b1aa (diff)
downloadhdf5-29cb102f121f79c2a678f036ff211a8bad91517f.zip
hdf5-29cb102f121f79c2a678f036ff211a8bad91517f.tar.gz
hdf5-29cb102f121f79c2a678f036ff211a8bad91517f.tar.bz2
[svn-r30104] Fixes evict-on-close feature by propagating global
flush flag up the function call stack and not setting it during H5Dclose().
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 86c7860..775cfdb 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -1712,21 +1712,21 @@ done:
herr_t
H5Tclose(hid_t type_id)
{
- H5T_t *dt; /* Pointer to datatype to close */
- herr_t ret_value = SUCCEED; /* Return value */
+ H5T_t *dt; /* Pointer to datatype to close */
+ herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
H5TRACE1("e", "i", type_id);
/* Check args */
if(NULL == (dt = (H5T_t *)H5I_object_verify(type_id, H5I_DATATYPE)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
if(H5T_STATE_IMMUTABLE == dt->shared->state)
- HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "immutable datatype")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "immutable datatype")
/* When the reference count reaches zero the resources are freed */
if(H5I_dec_app_ref(type_id) < 0)
- HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "problem freeing id")
+ HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "problem freeing id")
done:
FUNC_LEAVE_API(ret_value)