From 82e12143f97fbe9ce09f137004e3118fb745f28e Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 20 Aug 2001 13:36:58 -0500 Subject: [svn-r4396] Purpose: bug fix Description: H5FD_mpio_flush() would try to file seek negative if the file->eoa is 0 (e.g., doing mpio on the raw-file of the split file driver). Put in a code to catch this case by returning succeed immediately. Platforms tested: modi4(pp) --- src/H5FDmpio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c index ab1fbd8..15cc6b8 100644 --- a/src/H5FDmpio.c +++ b/src/H5FDmpio.c @@ -1542,6 +1542,9 @@ H5FD_mpio_flush(H5FD_t *_file) * Unfortunately, keeping track of EOF is an expensive operation, so * we can't just check whether EOFeoa == 0) + HRETURN(SUCCEED); if (haddr_to_MPIOff(file->eoa-1, &mpi_off)<0) { HRETURN_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "cannot convert from haddr_t to MPI_Offset"); -- cgit v0.12