Skip to content

Commit

Permalink
HPCC-32907 Improve roxie startup time by removing unused option
Browse files Browse the repository at this point in the history
* The helper name has been computed for many years, but roxie still
  contained code to extract it from the graph if it was set.

Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Oct 30, 2024
1 parent cf4b015 commit 4735ff9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions roxie/ccd/ccdquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,7 @@ class CQueryFactory : implements IQueryFactory, implements IResourceContext, pub
break;
}
StringBuffer helperName;
node.getProp("att[@name=\"helper\"]/@value", helperName);
if (!helperName.length())
helperName.append("fAc").append(id);
helperName.append("fAc").append(id);
HelperFactory *helperFactory = dll->getFactory(helperName);
if (!helperFactory)
throw MakeStringException(ROXIE_INTERNAL_ERROR, "Internal error: helper function %s not exported", helperName.str());
Expand Down Expand Up @@ -2002,9 +2000,7 @@ class CAgentQueryFactory : public CQueryFactory
else
{
StringBuffer helperName;
node.getProp("att[@name=\"helper\"]/@value", helperName);
if (!helperName.length())
helperName.append("fAc").append(node.getPropInt("@id", 0));
helperName.append("fAc").append(node.getPropInt("@id", 0));
HelperFactory *helperFactory = dll->getFactory(helperName.str());
if (!helperFactory)
throw MakeStringException(ROXIE_INTERNAL_ERROR, "Internal error: helper function %s not exported", helperName.str());
Expand Down

0 comments on commit 4735ff9

Please sign in to comment.