Skip to content

Commit

Permalink
HPCC-31511 Avoid keeping the workunit graphs in memory
Browse files Browse the repository at this point in the history
Changes following review

Signed-off-by: Richard Chapman <[email protected]>
  • Loading branch information
richardkchapman committed May 1, 2024
1 parent 690974a commit a19aeae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions esp/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ target_link_libraries ( esp
hrpc
remote
dalibase
workunit
)

if (NOT CONTAINERIZED)
Expand Down
2 changes: 1 addition & 1 deletion thorlcr/master/thgraphmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ bool CJobManager::execute(IConstWorkUnit *workunit, const char *wuid, const char
wu->setDebugAgentListenerIP(sb); //tells debugger what IP to write commands to
wu->setDebugAgentListenerPort(debugListener->getPort());
}

workunitGraphCacheEnabled = getExpertOptBool("workunitGraphCacheEnabled", workunitGraphCacheEnabled);
return doit(workunit, graphName, agentep);
}
catch (IException *e)
Expand Down
2 changes: 1 addition & 1 deletion thorlcr/slave/thslavemain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ static bool RegisterSelf(SocketEndpoint &masterEp)
getExpertOptPath(nullptr, xpath); // 'expert' in container world, or 'Debug' in bare-metal
ensurePTree(globals, xpath);
unsigned numStrands, blockSize;
workunitGraphCacheEnabled = getExpertOptBool("workunitGraphCacheEnabled", workunitGraphCacheEnabled);
getExpertOptPath("forceNumStrands", xpath.clear());
if (globals->hasProp(xpath))
numStrands = globals->getPropInt(xpath);
Expand Down Expand Up @@ -393,7 +394,6 @@ int main( int argc, const char *argv[] )
#else
globals.setown(loadConfiguration(globals, argv, "thor", "THOR", nullptr, nullptr, nullptr, false));
#endif
workunitGraphCacheEnabled = globals->getPropBool("expert/@workunitGraphCacheEnabled", workunitGraphCacheEnabled);

// NB: the thor configuration is serialized from the manager and only available after RegisterSelf
// Until that point, only properties on the command line are available.
Expand Down

0 comments on commit a19aeae

Please sign in to comment.