From 8831302db511f26118a51ecbc90f00481f6cf489 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 6 Mar 2003 07:39:12 -0500 Subject: [svn-r6468] Purpose: Potential bug fix. Description: The code to rotate the metadata writing process may not be compiled correctly in all cases. Solution: Change from using "++mpi_round" to "mpi_round+1" Platforms tested: Eyeballed... --- src/H5FDmpio.c | 2 +- src/H5FDmpiposix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c index 197dca5..8036fe5 100644 --- a/src/H5FDmpio.c +++ b/src/H5FDmpio.c @@ -1810,7 +1810,7 @@ done: HMPI_GOTO_ERROR(FAIL, "MPI_Bcast failed", mpi_code); /* Round-robin rotate to the next process */ - file->mpi_round = (++file->mpi_round)%file->mpi_size; + file->mpi_round = (file->mpi_round+1)%file->mpi_size; } /* end if */ } /* end if */ diff --git a/src/H5FDmpiposix.c b/src/H5FDmpiposix.c index ae92477..9c826dc 100644 --- a/src/H5FDmpiposix.c +++ b/src/H5FDmpiposix.c @@ -1242,7 +1242,7 @@ done: HMPI_GOTO_ERROR(FAIL, "MPI_Bcast failed", mpi_code); /* Round-robin rotate to the next process */ - file->mpi_round = (++file->mpi_round)%file->mpi_size; + file->mpi_round = (file->mpi_round+1)%file->mpi_size; } /* end if */ } /* end else */ -- cgit v0.12