From 3ec8346e58d87b7783556e0ba0fc0d45a50bb040 Mon Sep 17 00:00:00 2001 From: "vchoi-hdfgroup.org" Date: Thu, 14 Sep 2023 16:42:31 -0500 Subject: [PATCH] Restore H5D_TEMP_BUF_SIZE; add H5Pset_preserve() to the test. --- src/H5Dprivate.h | 2 +- src/H5Mprivate.h | 2 +- test/cmpd_dset.c | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/H5Dprivate.h b/src/H5Dprivate.h index a2e7baa1782..118c6cd4224 100644 --- a/src/H5Dprivate.h +++ b/src/H5Dprivate.h @@ -109,7 +109,7 @@ #endif /* H5_HAVE_INSTRUMENTED_LIBRARY */ /* Default temporary buffer size */ -#define H5D_TEMP_BUF_SIZE (1024 * 2048) +#define H5D_TEMP_BUF_SIZE (1024 * 1024) /* Default I/O vector size */ #define H5D_IO_VECTOR_SIZE 1024 diff --git a/src/H5Mprivate.h b/src/H5Mprivate.h index b8390c33402..6dfb55641c0 100644 --- a/src/H5Mprivate.h +++ b/src/H5Mprivate.h @@ -46,7 +46,7 @@ "key_alloc_size" /* Initial allocation size for keys prefetched during map iteration */ /* Default temporary buffer size */ -#define H5D_TEMP_BUF_SIZE (1024 * 2048) +#define H5D_TEMP_BUF_SIZE (1024 * 1024) /* Default I/O vector size */ #define H5D_IO_VECTOR_SIZE 1024 diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c index 7e69302facd..7e7bc6598c2 100644 --- a/test/cmpd_dset.c +++ b/test/cmpd_dset.c @@ -541,6 +541,9 @@ test_select_dst_subset(char *fname, hid_t fapl, hid_t in_dxpl, unsigned set_fill if ((did = H5Dcreate2(fid, DSET_NAME[2], src_tid, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0) goto error; + if (H5Pset_preserve(dxpl, true) < 0) + goto error; + /* Write to the dataset with rew_tid */ if (H5Dwrite(did, rew_tid, H5S_ALL, H5S_ALL, dxpl, rew_buf) < 0) goto error; @@ -564,6 +567,9 @@ test_select_dst_subset(char *fname, hid_t fapl, hid_t in_dxpl, unsigned set_fill initialize_stype4(rew_buf, (size_t)NX * NY); + if (H5Pset_preserve(dxpl, true) < 0) + goto error; + /* Write data to the dataset with rew_tid */ if (H5Dwrite(did, rew_tid, H5S_ALL, H5S_ALL, dxpl, rew_buf) < 0) goto error;