فهرست منبع

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 6 سال پیش
والد
کامیت
701c4aecc2
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  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