Skip to content

Commit

Permalink
Bug fix: Clean arrays at the end of the run in ParallelTask (#544)
Browse files Browse the repository at this point in the history
At the end of ParallelTask:Run(), arrays that store slave states must be resized to 0.
If Run() is called several times, these arrays will not be expanded.
  • Loading branch information
bruno-at-orange authored Jan 23, 2025
1 parent 97e5933 commit b7636e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Parallel/PLParallelTask/PLParallelTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,12 @@ boolean PLParallelTask::Run()
RMParallelResourceDriver::grantedResources = NULL;
}

// Retaillage des tableaux qui stockent l'etat des esclaves au cas ou la tache
// serait appelee 2 fois de suite
oaSlaves.SetSize(0);
oaSlavesByRank.SetSize(0);
ivGrantedSlaveIds.SetSize(0);

// Arret des serveurs de fichiers
if (runningMode != SLAVE and not bNothingToDo)
{
Expand Down

0 comments on commit b7636e7

Please sign in to comment.