Procházet zdrojové kódy

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

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday před 5 roky
rodič
revize
07a88c7473
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  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