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:35 UTC
(shardingsphere) 26/42: Fix password restore in GlobalRuleConfigurationEventSubscriber
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
commit 22b5353e5614c6aed582c62ea24cea26685a27c9
Author: RaigorJiang <ra...@gmail.com>
AuthorDate: Fri Nov 1 07:15:25 2024 +0800
Fix password restore in GlobalRuleConfigurationEventSubscriber
---
.../subscriber/dispatch/GlobalRuleConfigurationEventSubscriber.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/event/subscriber/dispatch/GlobalRuleConfigurationEventSubscriber.java b/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/event/subscriber/dispatch/GlobalRuleConfigurationEventSubscriber.java
index ac06f2c8016..756772b3308 100644
--- a/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/event/subscriber/dispatch/GlobalRuleConfigurationEventSubscriber.java
+++ b/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/event/subscriber/dispatch/GlobalRuleConfigurationEventSubscriber.java
@@ -61,7 +61,7 @@ public final class GlobalRuleConfigurationEventSubscriber implements EventSubscr
}
// SPEX ADDED: END
contextManager.getMetaDataContextManager().getGlobalConfigurationManager().alterGlobalRuleConfiguration(
- TypedSPILoader.findService(RuleConfigurationPersistDecorator.class, ruleConfig.getClass()).map(optional -> optional.restore(ruleConfig.get())).orElse(ruleConfig.get()));
+ TypedSPILoader.findService(RuleConfigurationPersistDecorator.class, ruleConfig.get().getClass()).map(optional -> optional.restore(ruleConfig.get())).orElse(ruleConfig.get()));
}
@SphereEx