From 7ce0e7d8fedac0f3de0241b74df8fe167de13c9d Mon Sep 17 00:00:00 2001 From: Neil Fortner Date: Thu, 9 May 2019 12:46:10 -0500 Subject: Add fixes that were mistakenly omitted from merge of pull request 1594 to 1.8 branch. --- hl/test/test_dset_opt.c | 4 ++-- src/H5Olayout.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hl/test/test_dset_opt.c b/hl/test/test_dset_opt.c index f2ad57e..fac2e89 100644 --- a/hl/test/test_dset_opt.c +++ b/hl/test/test_dset_opt.c @@ -2048,7 +2048,7 @@ test_single_chunk(unsigned config) if(config & CONFIG_DIRECT_WRITE) { /* Write the data directly to the dataset */ - if(H5Dwrite_chunk(did, H5P_DEFAULT, 0, offset, CHUNK0*CHUNK1*4, (void *)wdata) < 0) + if(H5DOwrite_chunk(did, H5P_DEFAULT, 0, offset, CHUNK0*CHUNK1*4, (void *)wdata) < 0) goto error; } /* end if */ else @@ -2086,7 +2086,7 @@ test_single_chunk(unsigned config) if(config & CONFIG_DIRECT_READ) { /* Read the data directly */ - if(H5Dread_chunk(did, H5P_DEFAULT, offset, &filters, rdata) < 0) + if(H5DOread_chunk(did, H5P_DEFAULT, offset, &filters, rdata) < 0) goto error; /* Verify returned filter mask */ diff --git a/src/H5Olayout.c b/src/H5Olayout.c index c22a1ba..131b4bf 100644 --- a/src/H5Olayout.c +++ b/src/H5Olayout.c @@ -641,7 +641,7 @@ H5O_layout_copy_file(H5F_t *file_src, void *mesg_src, H5F_t *file_dst, case H5D_CHUNKED: if(H5D__chunk_is_space_alloc(&layout_src->storage) - || (cpy_info->shared_fo && H5D__chunk_is_data_cached((const H5D_shared_t *)cpy_info->shared_fo))) + || (cpy_info->shared_fo && H5D__chunk_is_data_cached((const H5D_shared_t *)cpy_info->shared_fo))) { /* Create chunked layout */ if(H5D__chunk_copy(file_src, &layout_src->storage.u.chunk, &layout_src->u.chunk, file_dst, &layout_dst->storage.u.chunk, udata->src_space_extent, udata->src_dtype, udata->common.src_pline, cpy_info, dxpl_id) < 0) HGOTO_ERROR(H5E_OHDR, H5E_CANTCOPY, NULL, "unable to copy chunked storage") -- cgit v0.12