Explorar o código

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

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday %!s(int64=5) %!d(string=hai) anos
pai
achega
07a88c7473
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  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