You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ji...@apache.org on 2024/11/12 13:13:40 UTC
(shardingsphere) branch dev-5.5.1 updated: Optimize ExportDatabaseConfigurationExecutor
This is an automated email from the ASF dual-hosted git repository.
jiangmaolin pushed a commit to branch dev-5.5.1
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/dev-5.5.1 by this push:
new f6cde04ada3 Optimize ExportDatabaseConfigurationExecutor
f6cde04ada3 is described below
commit f6cde04ada3f3a7ac66646f87bab5fdc3dd49d8b
Author: jiangML <10...@qq.com>
AuthorDate: Tue Nov 12 21:13:24 2024 +0800
Optimize ExportDatabaseConfigurationExecutor
---
.../distsql/ral/queryable/ExportDatabaseConfigurationExecutor.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/queryable/ExportDatabaseConfigurationExecutor.java b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/queryable/ExportDatabaseConfigurationExecutor.java
index 1f35733d481..64fbcc6bee6 100644
--- a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/queryable/ExportDatabaseConfigurationExecutor.java
+++ b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/queryable/ExportDatabaseConfigurationExecutor.java
@@ -80,6 +80,7 @@ public final class ExportDatabaseConfigurationExecutor implements DistSQLQueryEx
return Collections.singleton(new LocalDataQueryResultRow(Base64.encodeBase64String(buildJsonContent(exportedData).getBytes())));
}
+ @SphereEx
private String buildJsonContent(final String exportedData) {
ExportedMetaData exportedMetaData = new ExportedMetaData();
exportedMetaData.setDatabases(Collections.singletonMap(database.getName(), exportedData));