Explorar el Código

Merge pull request #11572 from jakesmith/hpcc-20330

HPCC-20330 Stop aggregate stream to avoid potential deadlock

Reviewed-By: Mark Kelly <mark.kelly@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman hace 6 años
padre
commit
701c4aecc2
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      thorlcr/activities/hashdistrib/thhashdistribslave.cpp

+ 5 - 1
thorlcr/activities/hashdistrib/thhashdistribslave.cpp

@@ -4134,7 +4134,11 @@ public:
         ActPrintLog("HASHAGGREGATE: stopping");
         if (localAggTable)
             localAggTable->reset();
-        aggregateStream.clear();
+        if (aggregateStream)
+        {
+            aggregateStream->stop();
+            aggregateStream.clear();
+        }
         PARENT::stop();
     }
     virtual void abort() override