diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-11-07 00:26:31 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-11-07 00:26:31 (GMT) |
commit | 6622117e5377c4ada89f392c527b8c83d9049ce0 (patch) | |
tree | 7fd5dd7a117285cce361859831b8180b6a6983d0 /src/H5VLiod_group.c | |
parent | 9ebaa8c59c5ae6710384df79ec9a59c019894631 (diff) | |
download | hdf5-6622117e5377c4ada89f392c527b8c83d9049ce0.zip hdf5-6622117e5377c4ada89f392c527b8c83d9049ce0.tar.gz hdf5-6622117e5377c4ada89f392c527b8c83d9049ce0.tar.bz2 |
[svn-r24410] more IOD integration.
Diffstat (limited to 'src/H5VLiod_group.c')
-rw-r--r-- | src/H5VLiod_group.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/H5VLiod_group.c b/src/H5VLiod_group.c index 6c72e77..1ca18a6 100644 --- a/src/H5VLiod_group.c +++ b/src/H5VLiod_group.c @@ -78,7 +78,8 @@ H5VL_iod_server_group_create_cb(AXE_engine_t UNUSED axe_engine, &last_comp, &cur_id, &cur_oh) < 0) HGOTO_ERROR2(H5E_SYM, H5E_NOSPACE, FAIL, "can't traverse path"); - fprintf(stderr, "Creating at OH %"PRIu64" ID %"PRIx64"\n", cur_oh.wr_oh, cur_id); + fprintf(stderr, "Creating Group ID %"PRIx64") ", grp_id); + fprintf(stderr, "at (OH %"PRIu64" ID %"PRIx64")\n", cur_oh.wr_oh, cur_id); /* create the group */ if(iod_obj_create(coh, wtid, NULL, IOD_OBJ_KV, NULL, NULL, &grp_id, NULL) < 0) @@ -152,10 +153,12 @@ H5VL_iod_server_group_create_cb(AXE_engine_t UNUSED axe_engine, /* close parent group if it is not the location we started the traversal into */ if(loc_handle.rd_oh.cookie != cur_oh.rd_oh.cookie) { - iod_obj_close(cur_oh.rd_oh, NULL, NULL); + if(iod_obj_close(cur_oh.rd_oh, NULL, NULL) < 0) + HGOTO_ERROR2(H5E_SYM, H5E_CANTINIT, FAIL, "can't close current object handle"); } if(loc_handle.wr_oh.cookie != cur_oh.wr_oh.cookie) { - iod_obj_close(cur_oh.wr_oh, NULL, NULL); + if(iod_obj_close(cur_oh.wr_oh, NULL, NULL) < 0) + HGOTO_ERROR2(H5E_SYM, H5E_CANTINIT, FAIL, "can't close current object handle"); } #if H5VL_IOD_DEBUG |