REQ-3540: misc

This commit is contained in:
yanglin 2025-03-21 18:08:02 +08:00
parent 8638e855c9
commit bd40d4c229

View File

@ -165,22 +165,24 @@ public class IndexSupport {
}
boolean isChildrenNameDuplicatable(IndexNodeParentScope parentScope) {
switch (parentScope.nodeScope().context()) {
IndexNodeScope nodeScope = parentScope.nodeScope();
switch (nodeScope.context()) {
case FILE_TEMPLATE:
case TEMPLATE_DATABASE:
return false;
default:
return parentScope.nodeScope().scope().getChildNameDuplicatable();
return nodeScope.scope().getChildNameDuplicatable();
}
}
boolean isLimitChildrenCount(IndexNodeParentScope parentScope) {
switch (parentScope.nodeScope().context()) {
IndexNodeScope nodeScope = parentScope.nodeScope();
switch (nodeScope.context()) {
case FILE_TEMPLATE:
case TEMPLATE_DATABASE:
return true;
default:
return parentScope.nodeScope().scope().getLimitChildrenCount();
return nodeScope.scope().getLimitChildrenCount();
}
}