Remove unnecessary AtEOXact_Files call

pull/4817/head
Marco Slot 2021-03-15 09:34:02 +01:00
parent 1d3e075e62
commit 6c5d263b7a
1 changed files with 1 additions and 21 deletions

View File

@ -318,28 +318,8 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
/* stop propagating notices from workers, we know the query is failed */
DisableWorkerMessagePropagation();
/*
* FIXME: Add warning for the COORD_TRANS_COMMITTED case. That
* can be reached if this backend fails after the
* XACT_EVENT_PRE_COMMIT state.
*/
/*
* Call other parts of citus that need to integrate into
* transaction management. Do so before doing other work, so the
* callbacks still can perform work if needed.
*/
{
/*
* On Windows it's not possible to delete a file before you've closed all
* handles to it (rmdir will return success but not take effect). Since
* we're in an ABORT handler it's very likely that not all handles have
* been closed; force them closed here before running
* RemoveIntermediateResultsDirectory.
*/
AtEOXact_Files(false);
RemoveIntermediateResultsDirectory();
}
ResetShardPlacementTransactionState();
/* handles both already prepared and open transactions */