REQ-3540: misc

This commit is contained in:
yanglin 2025-03-21 15:32:36 +08:00
parent 0b1ee671bc
commit 80ce7ac4aa

View File

@ -46,12 +46,12 @@ public class ConnectNodeVisitor extends ValueNodeRecursiveVisitor<IndexNode> {
continue;
}
// IMPORTANT: append REVERSED parent path but not parent id, because:
// 1. We're walking the tree up
// 1. We're walking up the tree
// 2. The dest parent node may not be the tree root
if (destParentNode != null)
path = path.append(destParentNode.path().reverse());
}
// reserve the path because we're walking up the tree while building the path
// reserve the path because we're walking up the tree while building the path
return path.reverse();
}