Skip to content

Commit

Permalink
Common up XRefNodes code with containerized case
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelv committed Jul 9, 2024
1 parent 757a618 commit 4b0b9c7
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions esp/services/ws_dfu/ws_dfuXRefService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ bool CWsDfuXRefEx::onDFUXRefList(IEspContext &context, IEspDFUXRefListRequest &r
{
context.ensureFeatureAccess(XREF_FEATURE_URL, SecAccess_Read, ECLWATCH_DFU_XREF_ACCESS_DENIED, "WsDfuXRef::DFUXRefList: Permission denied.");

#ifdef _CONTAINERIZED
DBGLOG("CONTAINERIZED(CWsDfuXRefEx::onDFUXRefList)");
Owned<IPropertyTreeIterator> planesIter = getPlanesIterator("data", nullptr);

Expand All @@ -617,35 +616,6 @@ bool CWsDfuXRefEx::onDFUXRefList(IEspContext &context, IEspDFUXRefListRequest &r

StringBuffer buf;
resp.setDFUXRefListResult(formatResult(context, xrefNodeTree, buf));
#else
CConstWUClusterInfoArray clusters;
getEnvironmentClusterInfo(clusters);

BoolHash uniqueProcesses;
Owned<IPropertyTree> xrefNodeTree = createPTree("XRefNodes");
ForEachItemIn(c, clusters)
{
IConstWUClusterInfo &cluster = clusters.item(c);
switch (cluster.getPlatform())
{
case ThorLCRCluster:
{
const StringArray &primaryThorProcesses = cluster.getPrimaryThorProcesses();
ForEachItemIn(i, primaryThorProcesses)
addUniqueXRefNode(primaryThorProcesses.item(i), uniqueProcesses, xrefNodeTree);
}
break;
case RoxieCluster:
SCMStringBuffer roxieProcess;
addUniqueXRefNode(cluster.getRoxieProcess(roxieProcess).str(), uniqueProcesses, xrefNodeTree);
break;
}
}
addXRefNode("SuperFiles", xrefNodeTree);

StringBuffer buf;
resp.setDFUXRefListResult(formatResult(context, xrefNodeTree, buf));
#endif
}
catch(IException *e)
{
Expand Down

0 comments on commit 4b0b9c7

Please sign in to comment.