Skip to content

Commit

Permalink
Merge pull request #19209 from jakesmith/HPCC-32827-dali-namedmutex
Browse files Browse the repository at this point in the history
HPCC-32827 Allow Dali to start in BM without a configuration file

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Oct 24, 2024
2 parents aabc919 + 025b31a commit 2f4388d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions system/jlib/jmutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,15 @@ NamedMutex::NamedMutex(const char *name)
CriticalBlock b(lockPrefixCS);
if (0 == lockPrefix.length())
{
if (!getConfigurationDirectory(NULL, "lock", NULL, NULL, lockPrefix))
if (getConfigurationDirectory(NULL, "lock", NULL, NULL, lockPrefix))
addPathSepChar(lockPrefix);
else
WARNLOG("Failed to get lock directory from environment");
lockPrefix.append("JLIBMUTEX_");
}
addPathSepChar(lockPrefix);
lockPrefix.append("JLIBMUTEX_");
}
StringBuffer tmp(lockPrefix);
tmp.append("JLIBMUTEX_").append(name);
tmp.append(name);
mutexfname = tmp.detach();
}

Expand Down

0 comments on commit 2f4388d

Please sign in to comment.