Просмотр исходного кода

Merge pull request #7778 from ghalliday/issue14196

HPCC-14196 Fix out of order graph result access caused by HPCC-14196

Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 лет назад
Родитель
Сommit
163c35ae93
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      ecl/hqlcpp/hqlresource.cpp

+ 2 - 1
ecl/hqlcpp/hqlresource.cpp

@@ -2740,7 +2740,8 @@ IHqlExpression * SpillerInfo::createSpilledWrite(IHqlExpression * transformed, b
 
 void SpillerInfo::setPotentialSpillFile(IHqlExpression * expr)
 {
-    if (!expr || canUseResultInChildQuery(expr) || !isUsedFromChild())
+    if (!expr ||
+        ((canUseResultInChildQuery(expr) || !isUsedFromChild()) && (expr->getOperator() != no_setgraphresult)))
         outputToUseForSpill = expr;
 }