Преглед изворни кода

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 пре 11 година
родитељ
комит
c0b9ffa9e1
1 измењених фајлова са 3 додато и 1 уклоњено
  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"));