Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
eaydingol committed Mar 10, 2024
1 parent 303261d commit 043a981
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/distributed/utils/resource_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@ SerializeNonCommutativeWrites(List *shardIntervalList, LOCKMODE lockMode)
/*
* Acquire locks on the modified table.
* If the table is replicated, the locks are first acquired on the first worker node then locally.
* But if we're already on the first worker, acquiring on the first worker node and locally are the same operation. So we only acquire locally in that case.
* But if we're already on the first worker, acquiring on the first worker node and locally are the same operation.
* So we only acquire locally in that case.
*/
if (anyTableReplicated && ClusterHasKnownMetadataWorkers() && !IsFirstWorkerNode())
{
Expand Down

0 comments on commit 043a981

Please sign in to comment.