Skip to content

Commit

Permalink
HPCC-32933 Only count the first iteration time input processing for t…
Browse files Browse the repository at this point in the history
…he purposes of lookahead

Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Nov 13, 2024
1 parent 07fe69e commit 01ecf8a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions thorlcr/activities/loop/thloopslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,14 @@ class CLoopSlaveActivity : public CLoopSlaveActivityBase
{
OwnedConstThorRow ret;
{
LookAheadTimer t(slaveTimerStats, timeActivities);
ret.setown(curInput->nextRow());
if (loopCounter==1)
{
// the time used in first iteration is lookahead time
LookAheadTimer t(slaveTimerStats, timeActivities);
ret.setown(curInput->nextRow());
}
else
ret.setown(curInput->nextRow());
if (!ret)
{
ret.setown(curInput->nextRow()); // more cope with groups somehow....
Expand Down

0 comments on commit 01ecf8a

Please sign in to comment.