diff options
author | mainzer <mainzer#hdfgroup.org> | 2018-12-07 21:55:55 (GMT) |
---|---|---|
committer | mainzer <mainzer#hdfgroup.org> | 2018-12-07 21:55:55 (GMT) |
commit | 1520b17a3412544213e9a48b677034ff1d4d12da (patch) | |
tree | cace37fd9e9b667984cd41609f86a800d939d8c7 /test/vfd_swmr_generator.c | |
parent | 8cb185cb081e3d63440b41c18555fbff0dc07732 (diff) | |
download | hdf5-1520b17a3412544213e9a48b677034ff1d4d12da.zip hdf5-1520b17a3412544213e9a48b677034ff1d4d12da.tar.gz hdf5-1520b17a3412544213e9a48b677034ff1d4d12da.tar.bz2 |
interim checkin of VFD SWMR writer EOT code.
Added code supporting first cut at the writer end of tick operations.
Tested (to the extent possible) on charis and jelly.
Diffstat (limited to 'test/vfd_swmr_generator.c')
-rw-r--r-- | test/vfd_swmr_generator.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/vfd_swmr_generator.c b/test/vfd_swmr_generator.c index d3d5373..72b2fd1 100644 --- a/test/vfd_swmr_generator.c +++ b/test/vfd_swmr_generator.c @@ -179,7 +179,7 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t vfd_swmr_write, config->tick_len = 4; config->max_lag = 6; config->vfd_swmr_writer = TRUE; - config->md_pages_reserved = 2; + config->md_pages_reserved = 200; HDstrcpy(config->md_file_path, "my_md_file"); /* Enable VFD SWMR configuration in fapl */ @@ -240,6 +240,10 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t vfd_swmr_write, if(verbose) HDfprintf(stderr, "Creating datasets\n"); +#if 1 /* delete this once the race condiditon bug is fixed */ /* JRM */ + sleep(1); +#endif /* JRM */ + /* Create the datasets */ for(u = 0; u < NLEVELS; u++) for(v = 0; v < symbol_count[u]; v++) { @@ -287,6 +291,10 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t vfd_swmr_write, return -1; if(H5Tclose(tid) < 0) return -1; + + if(verbose) + HDfprintf(stderr, "Closing file\n"); + if(H5Fclose(fid) < 0) return -1; |