浏览代码

HPCC-14243 A couple of minor changes following review

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 9 年之前
父节点
当前提交
01398719cc
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      dali/base/dadfs.cpp

+ 1 - 2
dali/base/dadfs.cpp

@@ -8980,7 +8980,6 @@ class CInitGroups
 
     GroupType getGroupType(const char *type)
     {
-
         if (0 == strcmp("ThorCluster", type))
             return grp_thor;
         else if (0 == strcmp("RoxieCluster", type))
@@ -9160,7 +9159,6 @@ class CInitGroups
     {
         if (machinesLoaded)
             return true;
-        machinesLoaded = true;
         //GH->JCS This can't be changed to use getEnvironmentFactory() unless that moved inside dalibase;
         Owned<IRemoteConnection> conn = querySDS().connect("/Environment/Hardware", myProcessSession(), RTM_LOCK_READ, SDS_CONNECT_TIMEOUT);
         if (!conn) {
@@ -9177,6 +9175,7 @@ class CInitGroups
             machinemap.setValue(name, entry);
             machinelist.append(*entry);
         }
+        machinesLoaded = true;
         return true;
     }