mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r8140] Purpose:
Bug fix Description: Move assertion to allow closing non-HDF5 files with the MPI-I/O VFD to work correctly again. Platforms tested: FreeBSD 4.9 (sleipnir) h5committest
This commit is contained in:
parent
7388e8a3e4
commit
fd442eae18
@ -907,7 +907,6 @@ H5FD_mpio_close(H5FD_t *_file)
|
|||||||
#endif
|
#endif
|
||||||
assert(file);
|
assert(file);
|
||||||
assert(H5FD_MPIO==file->pub.driver_id);
|
assert(H5FD_MPIO==file->pub.driver_id);
|
||||||
assert(file->eoa>0);
|
|
||||||
|
|
||||||
#ifdef H5_MPI_FILE_SET_SIZE_BIG
|
#ifdef H5_MPI_FILE_SET_SIZE_BIG
|
||||||
/* Check if we should truncate the file */
|
/* Check if we should truncate the file */
|
||||||
@ -915,6 +914,7 @@ H5FD_mpio_close(H5FD_t *_file)
|
|||||||
MPI_Offset mpi_off; /* Offset to write test data at */
|
MPI_Offset mpi_off; /* Offset to write test data at */
|
||||||
|
|
||||||
/* Some numeric conversions */
|
/* Some numeric conversions */
|
||||||
|
assert(file->eoa>0);
|
||||||
if (H5FD_mpi_haddr_to_MPIOff(file->eoa, &mpi_off)<0)
|
if (H5FD_mpi_haddr_to_MPIOff(file->eoa, &mpi_off)<0)
|
||||||
HGOTO_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "can't convert from haddr to MPI off")
|
HGOTO_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "can't convert from haddr to MPI off")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user