Skip to content

Commit

Permalink
Add todo on cluster lock
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Dec 24, 2024
1 parent 972eabd commit 95fecff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void executeUpdate(final LockClusterStatement sqlStatement, final Context
checkAlgorithm(sqlStatement);
LockContext lockContext = contextManager.getComputeNodeInstanceContext().getLockContext();
GlobalLockDefinition lockDefinition = new GlobalLockDefinition(new ClusterLock());
// TODO should configured in SQL Statement
if (lockContext.tryLock(lockDefinition, 3000L)) {
try {
checkState(contextManager);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public void executeUpdate(final UnlockClusterStatement sqlStatement, final Conte
checkState(contextManager);
LockContext lockContext = contextManager.getComputeNodeInstanceContext().getLockContext();
GlobalLockDefinition lockDefinition = new GlobalLockDefinition(new ClusterLock());
// TODO should configured in SQL Statement
if (lockContext.tryLock(lockDefinition, 3000L)) {
try {
checkState(contextManager);
Expand Down

0 comments on commit 95fecff

Please sign in to comment.