summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2021-01-05 16:02:03 (GMT)
committerGitHub <noreply@github.com>2021-01-05 16:02:03 (GMT)
commit3ae45182b5f728fbe0fc25cf1fd8db5b1e014d4a (patch)
treec5c9e6678c31e03cff3318ceab31c7e42d12d399
parent4b733b292673e52ef14f61c9e3eb76f950c676c6 (diff)
downloadhdf5-3ae45182b5f728fbe0fc25cf1fd8db5b1e014d4a.zip
hdf5-3ae45182b5f728fbe0fc25cf1fd8db5b1e014d4a.tar.gz
hdf5-3ae45182b5f728fbe0fc25cf1fd8db5b1e014d4a.tar.bz2
Fix error is H5Mclose_async. (#240)
-rw-r--r--src/H5M.c4
-rw-r--r--src/H5VLint.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/H5M.c b/src/H5M.c
index 2265a66..0f609e2 100644
--- a/src/H5M.c
+++ b/src/H5M.c
@@ -645,9 +645,9 @@ H5Mclose_async(const char *app_file, const char *app_func, unsigned app_line, hi
if (H5I_MAP != H5I_get_type(map_id))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a map ID")
- /* Get dataset object's connector */
+ /* Get map object's connector */
if (NULL == (vol_obj = H5VL_vol_object(map_id)))
- HGOTO_ERROR(H5E_MAP, H5E_CANTGET, FAIL, "can't get VOL object for dataset")
+ HGOTO_ERROR(H5E_MAP, H5E_CANTGET, FAIL, "can't get VOL object for map")
/* Prepare for possible asynchronous operation */
if (H5ES_NONE != es_id) {
diff --git a/src/H5VLint.c b/src/H5VLint.c
index 17578b8..b7823fb 100644
--- a/src/H5VLint.c
+++ b/src/H5VLint.c
@@ -1713,7 +1713,7 @@ H5VL_vol_object(hid_t id)
obj_type = H5I_get_type(id);
if (H5I_FILE == obj_type || H5I_GROUP == obj_type || H5I_ATTR == obj_type || H5I_DATASET == obj_type ||
- H5I_DATATYPE == obj_type) {
+ H5I_DATATYPE == obj_type || H5I_MAP == obj_type) {
/* Get the object */
if (NULL == (obj = H5I_object(id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "invalid identifier")