summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_bigset_writer.c
diff options
context:
space:
mode:
authorvchoi <vchoi@jelly.ad.hdfgroup.org>2021-02-02 22:01:35 (GMT)
committervchoi <vchoi@jelly.ad.hdfgroup.org>2021-02-02 22:01:35 (GMT)
commitd8e77f13be0b849fdadedf2fb4689eb2ce04aaeb (patch)
treecdc33e6b5dae4d920ab8ef7b5f8691a8d36a13a1 /test/vfd_swmr_bigset_writer.c
parent592f8b738eb3fbab9805f2bf2ed9130539a6663b (diff)
downloadhdf5-d8e77f13be0b849fdadedf2fb4689eb2ce04aaeb.zip
hdf5-d8e77f13be0b849fdadedf2fb4689eb2ce04aaeb.tar.gz
hdf5-d8e77f13be0b849fdadedf2fb4689eb2ce04aaeb.tar.bz2
(1) Add new routine to configure for VFD SWMR: init_vfd_swmr_config()
(2) Revise routine to setup fapl for VFD SWMR legacy and other integration tests: vfd_swmr_create_fapl() (3) Update all VFD SWMR integration tests to use the above two routines (4) Clean up VFD SWMR legacy tests: turn on compression in test script, remove #ifdef OUT H5Fflush(), message file name
Diffstat (limited to 'test/vfd_swmr_bigset_writer.c')
-rw-r--r--test/vfd_swmr_bigset_writer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c
index 98824b5..d99d8e3 100644
--- a/test/vfd_swmr_bigset_writer.c
+++ b/test/vfd_swmr_bigset_writer.c
@@ -1134,14 +1134,18 @@ main(int argc, char **argv)
for (i = 0; i < NELMTS(s.file); i++) {
hid_t fapl;
+ H5F_vfd_swmr_config_t config;
if (s.vds != vds_multi && i > 0) {
s.file[i] = s.file[0];
continue;
}
- fapl = vfd_swmr_create_fapl(s.writer, true, s.use_vfd_swmr,
- "./bigset-shadow-%zu", i);
+ /* config, tick_len, max_lag, writer, flush_raw_data, md_pages_reserved, md_file_path */
+ init_vfd_swmr_config(&config, 4, 7, s.writer, FALSE, 128, "./bigset-shadow-%zu", i);
+
+ /* use_latest_format, use_vfd_swmr, only_meta_page, config */
+ fapl = vfd_swmr_create_fapl(true, s.use_vfd_swmr, true, &config);
if (fapl < 0)
errx(EXIT_FAILURE, "vfd_swmr_create_fapl");