Fix bug in swmr.c introduced with recent merge (double_t) (#1913)

* Fix HDFFV-11308 - dataset access properties disappear when using
H5Fstart_swmr_write.

* Committing clang-format changes

* Add test for H5Fstart_swmr_write() persisting DAPL settings.  Fix bugs
in the library exposed by this test.

* Committing clang-format changes

* Replace accidental use of double_t in swmr.c with double.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Neil Fortner 2022-07-19 16:19:02 -05:00 committed by GitHub
parent 96c4e0521c
commit 4461678fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3199,7 +3199,7 @@ dummy_append_flush_cb(hid_t H5_ATTR_UNUSED dataset_id, hsize_t H5_ATTR_UNUSED *c
static herr_t
tssw_persist_dapl_verify(hid_t did, hid_t vdsid1, hid_t vdsid2, hsize_t boundary, H5D_append_cb_t append_func,
void *append_func_ud, size_t rdcc_nslots, size_t rdcc_nbytes, double_t rdcc_w0,
void *append_func_ud, size_t rdcc_nslots, size_t rdcc_nbytes, double rdcc_w0,
const char *efile_prefix, const char *virtual_prefix, hsize_t gap_size,
H5D_vds_view_t virtual_view)
{
@ -3211,7 +3211,7 @@ tssw_persist_dapl_verify(hid_t did, hid_t vdsid1, hid_t vdsid2, hsize_t boundary
void * append_func_ud_out = NULL;
size_t rdcc_nslots_out = 0;
size_t rdcc_nbytes_out = 0;
double_t rdcc_w0_out = 0.;
double rdcc_w0_out = 0.;
char efile_prefix_out[64];
char virtual_prefix_out[64];
hsize_t gap_size_out = 0;
@ -3314,7 +3314,7 @@ test_start_swmr_write_persist_dapl(hid_t in_fapl)
void * append_func_ud = &boundary;
size_t rdcc_nslots = 125;
size_t rdcc_nbytes = 23434;
double_t rdcc_w0 = 0.68419;
double rdcc_w0 = 0.68419;
const char * efile_prefix = "dummy_efile_prefix";
const char * virtual_prefix = "dummy_virtual_prefix";
hsize_t gap_size = 421;