mirror of https://github.com/citusdata/citus.git
remove no-op check in TaskListRequires2PC (#4018)
We already return true if replication model is REPLICATION_MODEL_2PC at the very beginning of the function, hence the check later is not used.pull/4021/head
parent
15290bc43b
commit
b8830d063f
|
@ -1481,8 +1481,7 @@ TaskListRequires2PC(List *taskList)
|
|||
|
||||
if (task->taskType == DDL_TASK)
|
||||
{
|
||||
if (MultiShardCommitProtocol == COMMIT_PROTOCOL_2PC ||
|
||||
task->replicationModel == REPLICATION_MODEL_2PC)
|
||||
if (MultiShardCommitProtocol == COMMIT_PROTOCOL_2PC)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue