summaryrefslogtreecommitdiffstats
path: root/src/H5Tcommit.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2020-12-17 03:36:13 (GMT)
committerGitHub <noreply@github.com>2020-12-17 03:36:13 (GMT)
commit3f37f6648dcb868fdbd7f94658ad1cd965ae257c (patch)
treea922501d6c0bc59dcbf45e8b9b2b90028aca885b /src/H5Tcommit.c
parent068136351c3d52d12c6dd55f5d4185b700e9b5c4 (diff)
downloadhdf5-3f37f6648dcb868fdbd7f94658ad1cd965ae257c.zip
hdf5-3f37f6648dcb868fdbd7f94658ad1cd965ae257c.tar.gz
hdf5-3f37f6648dcb868fdbd7f94658ad1cd965ae257c.tar.bz2
Fix datatype lookup in named datatype flush/refresh code and detect more core dumps in test scripts (#193)hdf5-1_13_0-rc3
* Detect coredumps, and avoid printing a warning when creating a directory that already exists * Retrieve the actual datatype object correctly, in the face of possible pass-through VOL connectors * Detect more core dumps, and tiny formatting cleanup * Revert error status checks for mirror VFD test script
Diffstat (limited to 'src/H5Tcommit.c')
-rw-r--r--src/H5Tcommit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Tcommit.c b/src/H5Tcommit.c
index b990e4a..3eacea3 100644
--- a/src/H5Tcommit.c
+++ b/src/H5Tcommit.c
@@ -1333,7 +1333,7 @@ H5T_save_refresh_state(hid_t tid, H5O_shared_t *cached_H5O_shared)
if (NULL == (dt = (H5T_t *)H5I_object_verify(tid, H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "tid is not a datatype ID")
- vol_dt = (H5T_t *)(dt->vol_obj->data);
+ vol_dt = H5T_get_actual_type(dt);
if (NULL == vol_dt)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "tid is not not a named datatype ID")
@@ -1373,7 +1373,7 @@ H5T_restore_refresh_state(hid_t tid, H5O_shared_t *cached_H5O_shared)
if (NULL == (dt = (H5T_t *)H5I_object_verify(tid, H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "tid not a datatype ID")
- vol_dt = (H5T_t *)(dt->vol_obj->data);
+ vol_dt = H5T_get_actual_type(dt);
if (NULL == vol_dt)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "tid is not not a named datatype ID")