diff --git a/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/node/impl/center/CommitEdgeCenterNodeRenameSupport.kt b/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/node/impl/center/CommitEdgeCenterNodeRenameSupport.kt index c841e98a9a..875d1dea67 100644 --- a/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/node/impl/center/CommitEdgeCenterNodeRenameSupport.kt +++ b/src/backend/repository/biz-repository/src/main/kotlin/com/tencent/bkrepo/repository/service/node/impl/center/CommitEdgeCenterNodeRenameSupport.kt @@ -76,9 +76,9 @@ class CommitEdgeCenterNodeRenameSupport( return if (isEdgeRequest()) { where(TNode::clusterNames).ne(SecurityUtils.getClusterName()) } else { - Criteria().orOperator( - where(TNode::clusterNames).exists(false), - where(TNode::clusterNames).ne(listOf(clusterProperties.self.name)) + Criteria().andOperator( + where(TNode::clusterNames).ne(listOf(clusterProperties.self.name)), + where(TNode::clusterNames).ne(null) ) } }