Ver código fonte

HPCC-16387 Reinstate hasStarted check in dataLinkIncrement

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 8 anos atrás
pai
commit
0614bedc24
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      thorlcr/graph/thgraphslave.hpp

+ 3 - 3
thorlcr/graph/thgraphslave.hpp

@@ -37,9 +37,6 @@
 #include "traceslave.hpp"
 #include "thorstrand.hpp"
 
-// #define OUTPUT_RECORDSIZE // causes the record size to be logged for each activity on the 1st call to dataLinkIncrement
-
-
 interface IStartableEngineRowStream : extends IEngineRowStream
 {
     virtual void start() = 0;
@@ -89,6 +86,8 @@ public:
     inline void dataLinkIncrement() { dataLinkIncrement(1); }
     inline void dataLinkIncrement(rowcount_t v)
     {
+#ifdef _TESTING
+        assertex(hasStarted());
 #ifdef OUTPUT_RECORDSIZE
         if (count==THORDATALINK_STARTED)
         {
@@ -96,6 +95,7 @@ public:
             parent.ActPrintLog("Record size %s= %d", parent.queryRowMetaData(this)->isVariableSize()?"(min) ":"",rsz);
         }
 #endif
+#endif
         icount += v;
         count += v;
     }