This is an automated email from the ASF dual-hosted git repository.
tuichenchuxin 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 6207e641c2d Adjust mode document (#16860)
6207e641c2d is described below
commit 6207e641c2d27b7571a590adde11d52e58e46f30
Author: zhaojinchao <[email protected]>
AuthorDate: Fri Apr 15 18:41:57 2022 +0800
Adjust mode document (#16860)
---
docs/document/content/dev-manual/mode.cn.md | 9 +++++----
docs/document/content/dev-manual/mode.en.md | 7 ++++---
.../coordinator/lock/watcher/GlobalLocksChangedWatcher.java | 3 +--
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/docs/document/content/dev-manual/mode.cn.md
b/docs/document/content/dev-manual/mode.cn.md
index 1c20aa76221..f6038d57db0 100644
--- a/docs/document/content/dev-manual/mode.cn.md
+++ b/docs/document/content/dev-manual/mode.cn.md
@@ -25,7 +25,7 @@ chapter = true
| *已知实现类* | *详细说明* |
| ----------------------------- | ------------------------- |
| CuratorZookeeperRepository | 基于 ZooKeeper 的持久化 |
-| EtcdRepository | 基于 etcd 的持久化 |
+| EtcdRepository | 基于 Etcd 的持久化 |
## GovernanceWatcher
@@ -35,9 +35,10 @@ chapter = true
| *已知实现类* | *详细说明* |
| ----------------------------- | ------------------ |
-| StorageNodeStateChangedWatcher | 存储节点状态变化监听器 |
| ComputeNodeStateChangedWatcher | 计算节点状态变化监听器 |
-| PropertiesChangedWatcher | 属性变化监听器 |
-| PrivilegeNodeChangedWatcher | 权限变化监听器 |
+| GlobalAckChangedWatcher | 全局锁状态变化监听器 |
+| GlobalLocksChangedWatcher | 全局锁变化监听器 |
| GlobalRuleChangedWatcher | 全局规则配置变化监听器 |
| MetaDataChangedWatcher | 元数据变化监听器 |
+| PropertiesChangedWatcher | 属性变化监听器 |
+| StorageNodeStateChangedWatcher | 存储节点状态变化监听器 |
diff --git a/docs/document/content/dev-manual/mode.en.md
b/docs/document/content/dev-manual/mode.en.md
index 2641262c966..372e9993cac 100644
--- a/docs/document/content/dev-manual/mode.en.md
+++ b/docs/document/content/dev-manual/mode.en.md
@@ -35,9 +35,10 @@ chapter = true
| *Implementation Class* | *Description* |
| -------------------------------- | --------------------------------- |
-| StorageNodeStateChangedWatcher | Storage node changed watcher |
| ComputeNodeStateChangedWatcher | Compute node changed watcher |
-| PropertiesChangedWatcher | Properties changed watcher |
-| PrivilegeNodeChangedWatcher | Privilege changed watcher |
+| GlobalAckChangedWatcher | Global ack changed watcher |
+| GlobalLocksChangedWatcher | Global locks changed watcher |
| GlobalRuleChangedWatcher | Global rule changed watcher |
| MetaDataChangedWatcher | Meta data changed watcher |
+| PropertiesChangedWatcher | Properties changed watcher |
+| StorageNodeStateChangedWatcher | Storage node changed watcher |
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/lock/watcher/GlobalLocksChangedWatcher.java
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/lock/watcher/GlobalLocksChangedWatcher.java
index 7641ed26c53..70bfb895c61 100644
---
a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/lock/watcher/GlobalLocksChangedWatcher.java
+++
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/lock/watcher/GlobalLocksChangedWatcher.java
@@ -59,8 +59,7 @@ public final class GlobalLocksChangedWatcher implements
GovernanceWatcher<Govern
return Optional.of(new LockedEvent(lockedName));
} else if (Type.DELETED == eventType) {
return Optional.of(new LockReleasedEvent(lockedName));
- } else {
- return Optional.empty();
}
+ return Optional.empty();
}
}