浏览代码

HPCC-11980 Ensure local/child variety of NONEMPTY works.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 10 年之前
父节点
当前提交
0990ef272c
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      thorlcr/activities/funnel/thfunnelslave.cpp
  2. 1 1
      thorlcr/graph/thgraph.cpp

+ 3 - 1
thorlcr/activities/funnel/thfunnelslave.cpp

@@ -715,12 +715,14 @@ public:
     {
     {
         helper = (IHThorNonEmptyArg *) queryHelper();
         helper = (IHThorNonEmptyArg *) queryHelper();
         sendReceiving = false;
         sendReceiving = false;
+        masterMpTag = TAG_NULL;
     }
     }
 
 
 // IThorSlaveActivity overloaded methods
 // IThorSlaveActivity overloaded methods
     void init(MemoryBuffer &data, MemoryBuffer &slaveData)
     void init(MemoryBuffer &data, MemoryBuffer &slaveData)
     {
     {
-        masterMpTag = container.queryJob().deserializeMPTag(data);
+        if (!container.queryLocalOrGrouped())
+            masterMpTag = container.queryJob().deserializeMPTag(data);
         appendOutputLinked(this);
         appendOutputLinked(this);
     }
     }
     void abort()
     void abort()

+ 1 - 1
thorlcr/graph/thgraph.cpp

@@ -974,6 +974,7 @@ bool isGlobalActivity(CGraphElementBase &container)
         case TAKchildcount:
         case TAKchildcount:
         case TAKwhen_dataset:
         case TAKwhen_dataset:
         case TAKwhen_action:
         case TAKwhen_action:
+        case TAKnonempty:
             if (!container.queryLocalOrGrouped())
             if (!container.queryLocalOrGrouped())
                 return true;
                 return true;
             break;
             break;
@@ -1064,7 +1065,6 @@ bool isGlobalActivity(CGraphElementBase &container)
         case TAKrowresult:
         case TAKrowresult:
         case TAKremotegraph:
         case TAKremotegraph:
         case TAKlibrarycall:
         case TAKlibrarycall:
-        case TAKnonempty:
         default:
         default:
             return true; // if in doubt
             return true; // if in doubt
     }
     }