remove unnecessary if check (#3500)

pull/3511/head
SaitTalhaNisanci 2020-02-17 14:15:36 +03:00 committed by GitHub
parent 3d8efe303e
commit 71f1aa48a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -151,8 +151,7 @@ ExecuteLocalTaskList(CitusScanState *scanState, List *taskList)
* during execution. Record it to apply the restrictions related to
* local execution.
*/
if (!TransactionAccessedLocalPlacement &&
task->anchorShardId != INVALID_SHARD_ID)
if (task->anchorShardId != INVALID_SHARD_ID)
{
TransactionAccessedLocalPlacement = true;
}