REQ-3540: fix bug

This commit is contained in:
yanglin 2025-03-31 18:18:53 +08:00
parent 8efeef9431
commit 8f1ae5aba2

View File

@ -211,7 +211,7 @@ public class IndexManager {
.mapToInt(Node::getLevel) //
.max() //
.orElse(0);
indexSupport.validateDepthWhenAddChild(parent.path().depth() + subtreeMaxDepth);
indexSupport.validateDepthWhenAddChild(parent.path().depth() + subtreeMaxDepth + 1);
return parent;
}