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
SaitTalhaNisanci 2020-07-10 14:16:23 +03:00 committed by GitHub
parent 15290bc43b
commit b8830d063f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}