This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new e0a691ffbbc Remove useless code on ExportableConstants (#33586)
e0a691ffbbc is described below

commit e0a691ffbbce26d1be9494f626835b2aaf171875
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Nov 7 18:42:04 2024 +0800

    Remove useless code on ExportableConstants (#33586)
---
 .../distsql/handler/query/ShowReadwriteSplittingRuleExecutorTest.java  | 3 +--
 .../infra/rule/attribute/exportable/constant/ExportableConstants.java  | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/features/readwrite-splitting/distsql/handler/src/test/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/query/ShowReadwriteSplittingRuleExecutorTest.java
 
b/features/readwrite-splitting/distsql/handler/src/test/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/query/ShowReadwriteSplittingRuleExecutorTest.java
index 42f18f72425..a88d44e4170 100644
--- 
a/features/readwrite-splitting/distsql/handler/src/test/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/query/ShowReadwriteSplittingRuleExecutorTest.java
+++ 
b/features/readwrite-splitting/distsql/handler/src/test/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/query/ShowReadwriteSplittingRuleExecutorTest.java
@@ -63,8 +63,7 @@ class ShowReadwriteSplittingRuleExecutorTest extends 
DistSQLDatabaseRuleQueryExe
     }
     
     private static Map<String, Object> createExportedData() {
-        Map<String, Object> result = new HashMap<>(2, 1F);
-        
result.put(ExportableConstants.EXPORT_DYNAMIC_READWRITE_SPLITTING_RULE, 
Collections.emptyMap());
+        Map<String, Object> result = new HashMap<>();
         result.put(ExportableConstants.EXPORT_STATIC_READWRITE_SPLITTING_RULE, 
Collections.emptyMap());
         return result;
     }
diff --git 
a/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/attribute/exportable/constant/ExportableConstants.java
 
b/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/attribute/exportable/constant/ExportableConstants.java
index 74153fc0249..6d72a332ce6 100644
--- 
a/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/attribute/exportable/constant/ExportableConstants.java
+++ 
b/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/attribute/exportable/constant/ExportableConstants.java
@@ -28,7 +28,5 @@ public final class ExportableConstants {
     
     public static final String EXPORT_SINGLE_TABLES = "single_tables";
     
-    public static final String EXPORT_DYNAMIC_READWRITE_SPLITTING_RULE = 
"dynamic_readwrite_splitting_rules";
-    
     public static final String EXPORT_STATIC_READWRITE_SPLITTING_RULE = 
"static_readwrite_splitting_rules";
 }

Reply via email to