Skip to content

Commit

Permalink
Merge pull request #1229 from eisenhauer/SstRaceOnTimeoutClose2
Browse files Browse the repository at this point in the history
Race Condition Adjust
  • Loading branch information
eisenhauer authored Feb 26, 2019
2 parents dac7c51 + 6c31525 commit 093e342
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions source/adios2/toolkit/sst/cp/cp_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,6 @@ extern SstStatusValue SstAdvanceStep(SstStream Stream, SstStepMode mode,
}
NextTimestep =
MaxQueuedMetadata(Stream); /* might be -1 if we timed out */
MPI_Bcast(&NextTimestep, 1, MPI_LONG, 0, Stream->mpiComm);
}
else
{
Expand Down Expand Up @@ -1077,13 +1076,13 @@ extern SstStatusValue SstAdvanceStep(SstStream Stream, SstStepMode mode,
Smallest);
NextTimestep = Smallest;
}
if ((NextTimestep == -1) && (Stream->Status == PeerClosed))
{
/* force everyone to close */
NextTimestep = -2;
}
MPI_Bcast(&NextTimestep, 1, MPI_LONG, 0, Stream->mpiComm);
}
if ((NextTimestep == -1) && (Stream->Status == PeerClosed))
{
/* force everyone to close */
NextTimestep = -2;
}
MPI_Bcast(&NextTimestep, 1, MPI_LONG, 0, Stream->mpiComm);
}
else
{
Expand Down

0 comments on commit 093e342

Please sign in to comment.