summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper.c
diff options
context:
space:
mode:
authorRichard Warren <Richard.Warren@hdfgroup.org>2017-09-28 20:33:34 (GMT)
committerRichard Warren <Richard.Warren@hdfgroup.org>2017-09-28 20:33:34 (GMT)
commitda0f8223df7d37f3ae31da286a86fe62d58f6ea0 (patch)
tree994bbe88e950bc482a81b1637f4b679515adaba5 /src/H5Fsuper.c
parent81094ac3cfbf5785c0006516133d0dc34665b81c (diff)
parentb7e563266e8484c96d5ac75b9dcec2337bb15d43 (diff)
downloadhdf5-da0f8223df7d37f3ae31da286a86fe62d58f6ea0.zip
hdf5-da0f8223df7d37f3ae31da286a86fe62d58f6ea0.tar.gz
hdf5-da0f8223df7d37f3ae31da286a86fe62d58f6ea0.tar.bz2
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into optimize_superblock_read
Diffstat (limited to 'src/H5Fsuper.c')
-rw-r--r--src/H5Fsuper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c
index 32051f3..4750223 100644
--- a/src/H5Fsuper.c
+++ b/src/H5Fsuper.c
@@ -1000,6 +1000,9 @@ H5F__super_init(H5F_t *f, hid_t dxpl_id)
/* Bump superblock version if latest superblock version support is enabled */
if(H5F_USE_LATEST_FLAGS(f, H5F_LATEST_SUPERBLOCK))
super_vers = HDF5_SUPERBLOCK_VERSION_LATEST;
+ /* Bump superblock version to use version 3 superblock for SWMR writing */
+ else if((H5F_INTENT(f) & H5F_ACC_SWMR_WRITE))
+ super_vers = HDF5_SUPERBLOCK_VERSION_3;
/* Bump superblock version to create superblock extension for SOHM info */
else if(f->shared->sohm_nindexes > 0)
super_vers = HDF5_SUPERBLOCK_VERSION_2;