summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2016-05-13 17:47:48 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2016-05-13 17:47:48 (GMT)
commita4a848f5365ca5ece47543734688099098952f5b (patch)
treed4547315b6dc1d6d68850f59ba3d32f5d96e2d5c /src/H5VLiod.c
parentc2c3c53f6c5633e1639b9829367316e85c433408 (diff)
downloadhdf5-a4a848f5365ca5ece47543734688099098952f5b.zip
hdf5-a4a848f5365ca5ece47543734688099098952f5b.tar.gz
hdf5-a4a848f5365ca5ece47543734688099098952f5b.tar.bz2
[svn-r29932] add wait calls to get_token and get_addr before retrieving the info.
Diffstat (limited to 'src/H5VLiod.c')
-rw-r--r--src/H5VLiod.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5VLiod.c b/src/H5VLiod.c
index 1632ae8..8feb7bb 100644
--- a/src/H5VLiod.c
+++ b/src/H5VLiod.c
@@ -6719,6 +6719,12 @@ H5VL_iod_get_token(void *_obj, void *token, size_t *token_size)
*token_size = sizeof(iod_obj_id_t)*3 + sizeof(H5I_type_t);
+ /* MSC - If location object not opened yet, wait for it. */
+ if(obj->request && obj->request->state == H5VL_IOD_PENDING) {
+ if(H5VL_iod_request_wait(obj->file, obj->request) < 0)
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, NULL, "can't wait on HG request");
+ }
+
switch(obj_type) {
case H5I_GROUP:
{