Skip to content

Commit 323f176

Browse files
HPCC-33587 Add option to set minimum query execution time
Apply min time to queries called via SOAP too. This will apply the limit to each in an array of requests, which I think is what is wanted. The delays will happen in parallel if the queries can be done in parallel. Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
1 parent 3adb705 commit 323f176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roxie/ccd/ccdcontext.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2623,12 +2623,11 @@ class CRoxieServerContext : public CRoxieContextBase, implements IRoxieServerCon
26232623
{
26242624
logctx.mergeStats(0, globalStats);
26252625
unsigned __int64 elapsed = elapsedTimer.elapsedNs();
2626-
DBGLOG("Minimum time limit is %u", options.minTimeLimit);
26272626
if (nanoToMilli(elapsed) < options.minTimeLimit)
26282627
{
26292628
unsigned delay = options.minTimeLimit - nanoToMilli(elapsed);
26302629
MilliSleep(delay);
2631-
logctx.setStatistic(StTimeDelayed, delay);
2630+
logctx.noteStatistic(StTimeDelayed, delay);
26322631
}
26332632
logctx.setStatistic(StTimeTotalExecute, elapsed); // Should this include delay?
26342633
if (factory)
@@ -4057,6 +4056,7 @@ class CSoapRoxieServerContext : public CRoxieServerContext
40574056
GlobalCodeContextExtra gctx(this, 0);
40584057
p->perform(&gctx, 0);
40594058
}
4059+
doPostProcess();
40604060
}
40614061
};
40624062

0 commit comments

Comments
 (0)