Browse Source

HPCC-12001 Fix a typo and add more comment

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 11 years ago
parent
commit
b7e08abd6e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      esp/services/ws_workunits/ws_workunitsQuerySets.cpp

+ 3 - 1
esp/services/ws_workunits/ws_workunitsQuerySets.cpp

@@ -1250,7 +1250,9 @@ void CWsWorkunitsEx::checkAndSetClusterQueryState(IEspContext &context, const ch
         threadHandles.append(handle);
     }
 
-    //block for worker theads to finish, if necessary and then collect results
+    //block for worker threads to finish, if necessary and then collect results
+    //Not use joinAll() because multiple threads may call this method. Each call uses the pool to create
+    //its own threads of checking query state. Each call should only join the ones created by that call.
     ForEachItemIn(ii, threadHandles)
         clusterQueryStatePool->join(threadHandles.item(ii));
 }