Skip to content

Commit

Permalink
HPCC-31559 check atomic after crit, clarify tracing
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Apr 5, 2024
1 parent 33b94a3 commit 9ab0653
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/jlib/jfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7432,8 +7432,11 @@ static bool isAvoidRenameEnabled()
if (-1 == avoidRename)
{
CriticalBlock b(avoidRenameCS);
avoidRename = getComponentConfigSP()->getPropBool("expert/@avoidRename");
DBGLOG("FileSystemProperties.canRename = %s", boolToStr(avoidRename));
if (-1 == avoidRename)
{
avoidRename = getComponentConfigSP()->getPropBool("expert/@avoidRename");
DBGLOG("FileSystemProperties.canRename = %s", boolToStr(!avoidRename)); // NB: canRename if !avoidRename
}
}
return avoidRename;
}
Expand Down

0 comments on commit 9ab0653

Please sign in to comment.