summaryrefslogtreecommitdiffstats
path: root/src/H5Pfapl.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-10 21:00:09 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-10 21:00:09 (GMT)
commit3553c7617dc80428da8dcf77120820a3b11f5033 (patch)
tree9ccd820f0fe0d72224adf47b1e2a9361a5962881 /src/H5Pfapl.c
parent03cdbe93763ef40bc9ed4b05f44e917f0c84c777 (diff)
downloadhdf5-3553c7617dc80428da8dcf77120820a3b11f5033.zip
hdf5-3553c7617dc80428da8dcf77120820a3b11f5033.tar.gz
hdf5-3553c7617dc80428da8dcf77120820a3b11f5033.tar.bz2
Make a VFD SWMR writer use the SWMR VFD, to facilitate avoiding conflicting
multiple opens of the same file with VFD SWMR---i.e., twice for writing, or for reading and for writing. In the long run, this will help me encapsulate more of the SWMR functionality in the VFD, too.
Diffstat (limited to 'src/H5Pfapl.c')
-rw-r--r--src/H5Pfapl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index a3dc2a7..f616c70 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -5591,11 +5591,8 @@ H5Pset_vfd_swmr_config(hid_t plist_id, H5F_vfd_swmr_config_t *config_ptr)
if(H5P_set(plist, H5F_ACS_VFD_SWMR_CONFIG_NAME, config_ptr) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set metadata cache initial config")
- /* Hard-wired to use SWMR VFD */
- if(!config_ptr->writer) {
- if(H5P_set_driver(plist, H5FD_VFD_SWMR, NULL) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set VFD SWMR driver info")
- }
+ if(H5P_set_driver(plist, H5FD_VFD_SWMR, NULL) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set VFD SWMR driver info");
done:
FUNC_LEAVE_API(ret_value)