Skip to content

Commit

Permalink
Merge pull request #17573 from jakesmith/HPCC-29923-avoid-rowserver-c…
Browse files Browse the repository at this point in the history
…ancel

HPCC-29923 Avoid CRowServer cancel if not running
  • Loading branch information
GordonSmith authored Jul 13, 2023
2 parents 1210cb5 + 99af224 commit 784285f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thorlcr/thorutil/thormisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1364,8 +1364,9 @@ class CRowServer : public CSimpleInterface, implements IThreaded, implements IRo
#ifdef TRACE_GLOBAL_GROUP
ActPrintLog(activity, "%s", __func__);
#endif
running = false;
comm.cancel(RANK_ALL, mpTag);
bool wanted = true;
if (running.compare_exchange_strong(wanted, false))
comm.cancel(RANK_ALL, mpTag);
}
};

Expand Down

0 comments on commit 784285f

Please sign in to comment.