Mark failed placements as inactive immediately after COPY

pull/1168/head
Marco Slot 2017-01-24 12:55:15 +01:00 committed by Murat Tuncer
parent b1626887d5
commit f56454360c
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)