Explorar o código

Merge pull request #5697 from jakesmith/hpcc-11229

HPCC-11229 - Fix testLocalCluster dfu check

Reviewed-By: Attila Vamos <attila.vamos@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=11) %!d(string=hai) anos
pai
achega
c0b9ffa9e1
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      dali/dfu/dfurun.cpp

+ 3 - 1
dali/dfu/dfurun.cpp

@@ -387,7 +387,9 @@ class CDFUengine: public CInterface, implements IDFUengine
         Owned<IPropertyTreeIterator> clusters;
         clusters.setown(root->getElements("ThorCluster"));
         ForEach(*clusters) {
-            if (strcmp(clusters->query().queryProp("@name"),groupname)==0)
+            StringBuffer thorClusterGroupName;
+            getClusterGroupName(clusters->query(), thorClusterGroupName);
+            if (strcmp(thorClusterGroupName.str(),groupname)==0)
                 return true;
         }
         clusters.setown(root->getElements("RoxieCluster"));