From fd9abd458daa86951af7a5f2ec853d91f5bad09f Mon Sep 17 00:00:00 2001 From: zhangliang Date: Mon, 23 Dec 2024 23:07:30 +0800 Subject: [PATCH] Rename GlobalLockName.GLOBAL_CLOCK --- .../globalclock/executor/GlobalClockTransactionHook.java | 2 +- .../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 6f9f8cc23f309..3a36bf69dca92 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 @@ */ public final class GlobalClockTransactionHook implements TransactionHook { - 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 03a92419e45a6..782c0818ce0c5 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");