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 3b8033fa71f Rename GlobalLockName.GLOBAL_CLOCK (#34130) 3b8033fa71f is described below commit 3b8033fa71f9446b8ad1e744801a00e400a54ff2 Author: Liang Zhang <zhangli...@apache.org> AuthorDate: Mon Dec 23 23:09:30 2024 +0800 Rename GlobalLockName.GLOBAL_CLOCK (#34130) --- .../shardingsphere/globalclock/executor/GlobalClockTransactionHook.java | 2 +- .../java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/global-clock/core/src/main/java/org/apache/shardingsphere/globalclock/executor/GlobalClockTransactionHook.java b/kernel/global-clock/core/src/main/java/org/apache/shardingsphere/globalclock/executor/GlobalClockTransactionHook.java index 6f9f8cc23f3..3a36bf69dca 100644 --- a/kernel/global-clock/core/src/main/java/org/apache/shardingsphere/globalclock/executor/GlobalClockTransactionHook.java +++ b/kernel/global-clock/core/src/main/java/org/apache/shardingsphere/globalclock/executor/GlobalClockTransactionHook.java @@ -41,7 +41,7 @@ import java.util.Optional; */ public final class GlobalClockTransactionHook implements TransactionHook<GlobalClockRule> { - private final LockDefinition lockDefinition = new GlobalLockDefinition(GlobalLockName.GLOBAL_LOCK); + private final LockDefinition lockDefinition = new GlobalLockDefinition(GlobalLockName.GLOBAL_CLOCK); @Override public void beforeBegin(final GlobalClockRule rule, final DatabaseType databaseType, final TransactionConnectionContext transactionContext) { diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java index 03a92419e45..782c0818ce0 100644 --- a/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java +++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/lock/global/GlobalLockName.java @@ -31,7 +31,7 @@ public enum GlobalLockName { PREPARE("prepare_%s"), - GLOBAL_LOCK("global_clock"), + GLOBAL_CLOCK("global_clock"), STATISTICS("statistics");