Browse Source

Merge pull request #15894 from wangkx/move_filesInUse_subscribe

HPCC-27359 Move QueryFilesInUse subscription into thread

Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 3 years ago
parent
commit
783589a064

+ 0 - 1
esp/services/ws_workunits/ws_workunitsService.cpp

@@ -479,7 +479,6 @@ void CWsWorkunitsEx::init(IPropertyTree *cfg, const char *process, const char *s
     initContainerRoxieTargets(roxieConnMap);
 #endif
     m_sched.start();
-    filesInUse.subscribe();
 
     //Start thread pool
     xpath.setf("Software/EspProcess[@name=\"%s\"]/EspService[@name=\"%s\"]/ClusterQueryStateThreadPoolSize", process, service);

+ 1 - 0
esp/services/ws_workunits/ws_workunitsService.hpp

@@ -102,6 +102,7 @@ public:
 
     virtual void threadmain()
     {
+        subscribe();
         while (!aborting)
         {
             //prepopulate the cache, lazy mode is very slow