diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-03-20 18:25:49 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-03-20 18:25:49 (GMT) |
commit | 9947f5bcc0c1eefa6ebfaaa6e3604544dda3e900 (patch) | |
tree | 48980c532aaff7fd496819a700a01fc79784a219 /src/H5VLiod_server.c | |
parent | de2197597659fe62c99885281c4c098d74e01ff1 (diff) | |
download | hdf5-9947f5bcc0c1eefa6ebfaaa6e3604544dda3e900.zip hdf5-9947f5bcc0c1eefa6ebfaaa6e3604544dda3e900.tar.gz hdf5-9947f5bcc0c1eefa6ebfaaa6e3604544dda3e900.tar.bz2 |
[svn-r23404] switching to use new async API
Diffstat (limited to 'src/H5VLiod_server.c')
-rw-r--r-- | src/H5VLiod_server.c | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/src/H5VLiod_server.c b/src/H5VLiod_server.c index 54bbf8c..0a2f847 100644 --- a/src/H5VLiod_server.c +++ b/src/H5VLiod_server.c @@ -922,10 +922,10 @@ done: if(ret_value < 0) fs_handler_complete(input->fs_handle, &ret_value); - if(H5P_FILE_CREATE_DEFAULT != input->fcpl_id) - H5Pclose(input->fcpl_id); - if(H5P_FILE_ACCESS_DEFAULT != input->fapl_id) - H5Pclose(input->fapl_id); + //if(H5P_FILE_CREATE_DEFAULT != input->fcpl_id) + //H5Pclose(input->fcpl_id); + //if(H5P_FILE_ACCESS_DEFAULT != input->fapl_id) + //H5Pclose(input->fapl_id); H5MM_free(input->name); input = H5MM_xfree(input); FUNC_LEAVE_NOAPI(ret_value) @@ -992,8 +992,8 @@ done: if(ret_value < 0) fs_handler_complete(input->fs_handle, &ret_value); - if(H5P_FILE_ACCESS_DEFAULT != input->fapl_id) - H5Pclose(input->fapl_id); + //if(H5P_FILE_ACCESS_DEFAULT != input->fapl_id) + //H5Pclose(input->fapl_id); H5MM_free(input->name); input = H5MM_xfree(input); @@ -1232,12 +1232,12 @@ done: if(ret_value < 0) fs_handler_complete(input->fs_handle, &ret_value); - if(H5P_GROUP_CREATE_DEFAULT != input->gcpl_id) - H5Pclose(input->gcpl_id); - if(H5P_GROUP_ACCESS_DEFAULT != input->gapl_id) - H5Pclose(input->gapl_id); - if(H5P_LINK_CREATE_DEFAULT != input->lcpl_id) - H5Pclose(input->lcpl_id); + //if(H5P_GROUP_CREATE_DEFAULT != input->gcpl_id) + //H5Pclose(input->gcpl_id); + //if(H5P_GROUP_ACCESS_DEFAULT != input->gapl_id) + //H5Pclose(input->gapl_id); + //if(H5P_LINK_CREATE_DEFAULT != input->lcpl_id) + //H5Pclose(input->lcpl_id); H5MM_free(input->name); input = H5MM_xfree(input); FUNC_LEAVE_NOAPI(ret_value) @@ -1367,8 +1367,8 @@ done: H5MM_xfree(output.gcpl); - if(H5P_GROUP_ACCESS_DEFAULT != input->gapl_id) - H5Pclose(input->gapl_id); + //if(H5P_GROUP_ACCESS_DEFAULT != input->gapl_id) + //H5Pclose(input->gapl_id); H5MM_free(input->name); input = H5MM_xfree(input); @@ -1609,8 +1609,8 @@ H5VL_iod_server_dset_create_cb(size_t UNUSED num_necessary_parents, AXE_task_t U HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't set KV pair in parent"); HDfree(kv.key); free(kv.value); - if(H5P_DATASET_CREATE_DEFAULT != input->dcpl_id) - H5Pclose(input->dcpl_id); + //if(H5P_DATASET_CREATE_DEFAULT != input->dcpl_id) + //H5Pclose(input->dcpl_id); /* insert datatyoe metadata into scratch pad */ kv.key = HDstrdup("dataset_dtype"); @@ -1666,11 +1666,12 @@ done: if(ret_value < 0) fs_handler_complete(input->fs_handle, &ret_value); - if(H5P_DATASET_ACCESS_DEFAULT != input->dapl_id) - H5Pclose(input->dapl_id); - if(H5P_LINK_CREATE_DEFAULT != input->lcpl_id) - H5Pclose(input->lcpl_id); + //if(H5P_DATASET_ACCESS_DEFAULT != input->dapl_id) + //H5Pclose(input->dapl_id); + //if(H5P_LINK_CREATE_DEFAULT != input->lcpl_id) + //H5Pclose(input->lcpl_id); H5MM_free(input->name); + input = H5MM_xfree(input); FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_iod_server_dset_create_cb() */ @@ -1817,8 +1818,8 @@ done: H5MM_xfree(output.dtype); H5MM_xfree(output.dspace); - if(H5P_DATASET_ACCESS_DEFAULT != input->dapl_id) - H5Pclose(input->dapl_id); + //if(H5P_DATASET_ACCESS_DEFAULT != input->dapl_id) + //H5Pclose(input->dapl_id); H5MM_free(input->name); input = H5MM_xfree(input); @@ -1918,8 +1919,8 @@ done: if(S_SUCCESS != bds_block_handle_free(bds_block_handle)) HDONE_ERROR(H5E_SYM, H5E_WRITEERROR, FAIL, "can't free bds block handle"); - if(H5P_DATASET_XFER_DEFAULT != input->dxpl_id) - H5Pclose(input->dxpl_id); + //if(H5P_DATASET_XFER_DEFAULT != input->dxpl_id) + //H5Pclose(input->dxpl_id); H5Sclose(input->space_id); input = H5MM_xfree(input); @@ -2010,8 +2011,8 @@ done: //if(S_SUCCESS != bds_block_handle_free(bds_block_handle)) //HDONE_ERROR(H5E_SYM, H5E_WRITEERROR, FAIL, "can't free bds block handle"); - if(H5P_DATASET_XFER_DEFAULT != input->dxpl_id) - H5Pclose(input->dxpl_id); + //if(H5P_DATASET_XFER_DEFAULT != input->dxpl_id) + //H5Pclose(input->dxpl_id); H5Sclose(input->space_id); input = H5MM_xfree(input); |