HPCC-27359 Move QueryFilesInUse subscription into thread Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com> Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -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);
@@ -102,6 +102,7 @@ public:
virtual void threadmain()
{
+ subscribe();
while (!aborting)
//prepopulate the cache, lazy mode is very slow