mirror of https://github.com/citusdata/citus.git
update comment
parent
b28b5a9782
commit
99d73fd3e5
|
@ -712,6 +712,7 @@ 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.
|
||||
*/
|
||||
if (anyTableReplicated && ClusterHasKnownMetadataWorkers() && !IsFirstWorkerNode())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue