Browse Source

HPCC-23514 Fix problems in new config code with legacy Roxie topology

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 5 năm trước cách đây
mục cha
commit
3d6e90b303
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      system/jlib/jptree.cpp

+ 3 - 0
system/jlib/jptree.cpp

@@ -7688,6 +7688,9 @@ void mergeConfiguration(IPropertyTree & target, IPropertyTree & source)
         IPropertyTree & child = iter->query();
         const char * tag = child.queryName();
         const char * name = child.queryProp("@name");
+        //Legacy support for old roxie configuration files that have repeated elements with no name tag
+        if (!name)
+            name = child.queryProp("@netAddress");
         const char * path = tag;
         if (name)
         {