Mark failed placements as inactive immediately after COPY

pull/1938/head
Marco Slot 2017-01-24 12:55:15 +01:00 committed by Murat Tuncer
parent b4c5a0781b
commit e55faf10f0
1 changed files with 3 additions and 0 deletions

View File

@ -536,6 +536,9 @@ CopyToExistingShards(CopyStmt *copyStatement, char *completionTag)
EndCopyFrom(copyState);
heap_close(distributedRelation, NoLock);
/* mark failed placements as inactive */
CheckForFailedPlacements(true, CoordinatedTransactionUses2PC);
CHECK_FOR_INTERRUPTS();
if (completionTag != NULL)