This is an automated email from the ASF dual-hosted git repository.
zhaojinchao 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 b2692b8389c Build special rules after global rule configuration
changed (#18333)
b2692b8389c is described below
commit b2692b8389c76f09d448904db08f7d6e2b5dd9c1
Author: Haoran Meng <[email protected]>
AuthorDate: Mon Jun 13 19:10:42 2022 +0800
Build special rules after global rule configuration changed (#18333)
---
.../manager/cluster/coordinator/ClusterContextManagerCoordinator.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/ClusterContextManagerCoordinator.java
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/ClusterContextManagerCoordinator.java
index 32a9fb69197..3bba30fd6b0 100644
---
a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/ClusterContextManagerCoordinator.java
+++
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/ClusterContextManagerCoordinator.java
@@ -211,6 +211,7 @@ public final class ClusterContextManagerCoordinator {
@Subscribe
public synchronized void renew(final GlobalRuleConfigurationsChangedEvent
event) {
contextManager.alterGlobalRuleConfiguration(event.getRuleConfigurations());
+ buildSpecialRules();
}
/**