diff options
author | David Young <dyoung@hdfgroup.org> | 2020-05-19 19:50:46 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:37:21 (GMT) |
commit | 975fc23fb4225f4f81a46f945844dfda7a988fea (patch) | |
tree | 7eb202847d31adfeabf3cfd4d0c6b19c62b82598 | |
parent | 25585400e610c7a358af6ed564ef5938749ba9fd (diff) | |
download | hdf5-975fc23fb4225f4f81a46f945844dfda7a988fea.zip hdf5-975fc23fb4225f4f81a46f945844dfda7a988fea.tar.gz hdf5-975fc23fb4225f4f81a46f945844dfda7a988fea.tar.bz2 |
Use the write name for the VFD index, SWMR_IDX -> SWMR_VFD_IDX.
-rw-r--r-- | tools/lib/h5tools.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index 42723a3..17d4c2a 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -87,7 +87,7 @@ const char *drivernames[]={ [MPIO_VFD_IDX] = "mpio", [ROS3_VFD_IDX] = "ros3", [HDFS_VFD_IDX] = "hdfs", - [SWMR_IDX] = "swmr", + [SWMR_VFD_IDX] = "swmr", }; #define NUM_VOLS (sizeof(volnames) / sizeof(volnames[0])) @@ -966,6 +966,13 @@ h5tools_fopen(const char *fname, unsigned flags, hid_t fapl_id, hbool_t use_spec if (drivernum == LOG_VFD_IDX) continue; + /* Skip the SWMR VFD, since it will start to wait to + * rendezvous with a writer, and that's not usually + * desired. + */ + if (drivernum == SWMR_VFD_IDX) + continue; + vfd_info.info = NULL; vfd_info.fname = fname; vfd_info.name = drivernames[drivernum]; |