浏览代码

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"));