ソースを参照

HPCC-22810 Include onfail() rows in the index read row count

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 5 年 前
コミット
07a88c7473
1 ファイル変更8 行追加2 行削除
  1. 8 2
      ecl/hthor/hthorkey.cpp

+ 8 - 2
ecl/hthor/hthorkey.cpp

@@ -882,7 +882,10 @@ const void *CHThorIndexReadActivity::nextRow()
             if (!keyedLimitRowCreated)
             {
                 keyedLimitRowCreated = true;
-                return createKeyedLimitOnFailRow();
+                const void * ret = createKeyedLimitOnFailRow();
+                if (ret)
+                    processed++;
+                return ret;
             }
             return NULL;
         }
@@ -1186,7 +1189,10 @@ const void *CHThorIndexNormalizeActivity::nextRow()
             else if((helper.getFlags() & TIRkeyedlimitcreates) != 0)
             {
                 skipLimitReached = true;
-                return createKeyedLimitOnFailRow();
+                const void * ret = createKeyedLimitOnFailRow();
+                if (ret)
+                    processed++;
+                return ret;
             }
             else
                 helper.onKeyedLimitExceeded(); // should throw exception