Pārlūkot izejas kodu

HPCC-12251 Create cassandra plugin for workunit storage

Minor changes following review.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 gadi atpakaļ
vecāks
revīzija
69bf298232
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      esp/services/ws_workunits/ws_workunitsService.cpp

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

@@ -1808,6 +1808,13 @@ void doWUQueryWithSort(IEspContext &context, IEspWUQueryRequest & req, IEspWUQue
             continue;
         }
 
+        // This test is presumably trying to remove the global workunit, though it's not the right way to do so (since it will mess up page counts etc)
+        const char* wuid = cw.queryWuid();
+        if (!looksLikeAWuid(wuid, 'W'))
+        {
+            numWUs--;
+            continue;
+        }
         actualCount++;
         Owned<IEspECLWorkunit> info = createECLWorkunit("","");
         info->setWuid(cw.queryWuid());