summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-03-27 19:20:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-03-27 19:20:50 (GMT)
commitc975f49984d5da0ba5a9cd4fb3f8918bb49b595c (patch)
tree9afd7cbdfc219b3f30401f59e0680bec68cf4d57 /src/H5FDmpio.c
parent711ac55f9648d21b0cfbdda24366773de5199af5 (diff)
downloadhdf5-c975f49984d5da0ba5a9cd4fb3f8918bb49b595c.zip
hdf5-c975f49984d5da0ba5a9cd4fb3f8918bb49b595c.tar.gz
hdf5-c975f49984d5da0ba5a9cd4fb3f8918bb49b595c.tar.bz2
Add an assert to verify that we don't write when between MPI_Barrier() calls
during a flush.
Diffstat (limited to 'src/H5FDmpio.c')
-rw-r--r--src/H5FDmpio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index a898786..ee3277d 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -1730,6 +1730,9 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id,
HDassert(H5FD_MPIO==file->pub.driver_id);
HDassert(buf);
+ /* Verify that no data is written when between MPI_Barrier()s during file flush */
+ HDassert(!H5CX_get_mpi_file_flushing());
+
/* Portably initialize MPI status variable */
HDmemset(&mpi_stat, 0, sizeof(MPI_Status));