From 429f12c23ec6843154b80804005e563c23560caa Mon Sep 17 00:00:00 2001 From: zhaojinchao Date: Mon, 28 Oct 2024 17:46:21 +0800 Subject: [PATCH] Fix database name param --- .../infra/instance/yaml/YamlComputeNodeDataSwapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/yaml/YamlComputeNodeDataSwapper.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/yaml/YamlComputeNodeDataSwapper.java index f2e7916d34f77..e451277a1c5fa 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/yaml/YamlComputeNodeDataSwapper.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/yaml/YamlComputeNodeDataSwapper.java @@ -30,7 +30,7 @@ public YamlComputeNodeData swapToYamlConfiguration(final ComputeNodeData data) { YamlComputeNodeData result = new YamlComputeNodeData(); result.setAttribute(data.getAttribute()); result.setVersion(data.getVersion()); - result.setDatabaseName(data.getVersion()); + result.setDatabaseName(data.getDatabaseName()); return result; }