summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2013-09-09 20:03:36 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2013-09-09 20:03:36 (GMT)
commitafd08f752393a264a4647829cefcb666d1797a3c (patch)
tree93d20a695c7687baccc8e361e50908dd43c2b9a4 /src/H5FDmpio.c
parent38e0563a6e2bf77c860abb0ec61aa6a9da4204af (diff)
downloadhdf5-afd08f752393a264a4647829cefcb666d1797a3c.zip
hdf5-afd08f752393a264a4647829cefcb666d1797a3c.tar.gz
hdf5-afd08f752393a264a4647829cefcb666d1797a3c.tar.bz2
[svn-r24117] Description:
Revert accidental checkin of a patch that disables file truncation for parallel I/O. Tested on: MacOSX/64 10.8.4 (amazon)
Diffstat (limited to 'src/H5FDmpio.c')
-rw-r--r--src/H5FDmpio.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index 067d4f4..2d73ec0 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -1985,18 +1985,8 @@ H5FD_mpio_truncate(H5FD_t *_file, hid_t UNUSED dxpl_id, hbool_t UNUSED closing)
HGOTO_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "cannot convert from haddr_t to MPI_Offset")
/* Extend the file's size */
- // Suren's modifications to disable truncate
- // Original code: commented out the following 2 lines
- // if(MPI_SUCCESS != (mpi_code = MPI_File_set_size(file->f, mpi_off)))
- // HMPI_GOTO_ERROR(FAIL, "MPI_File_set_size failed", mpi_code)
- // Modified code: The following 6 lines
- if (getenv("HDF5_TRUNCATE")) {
- if(0 == file->mpi_rank)
- printf("I: HDF5: MPI-IO VFD: MPI_File_set_size()");
- if(MPI_SUCCESS != (mpi_code = MPI_File_set_size(file->f, mpi_off)))
- HMPI_GOTO_ERROR(FAIL, "MPI_File_set_size failed", mpi_code)
- }
- // End of modified code
+ if(MPI_SUCCESS != (mpi_code = MPI_File_set_size(file->f, mpi_off)))
+ HMPI_GOTO_ERROR(FAIL, "MPI_File_set_size failed", mpi_code)
#else /* H5_MPI_FILE_SET_SIZE_BIG */
/* Wait until all processes are here before reading/writing the byte at
* process 0's end of address space. The window for corruption is