Merge pull request #2161 from citusdata/move-intermediate-results-directory

Move call to RemoveIntermediateResultsDirectory
pull/2169/head
Marco Slot 2018-05-11 11:44:53 +02:00 committed by GitHub
commit 9323db2e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,6 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
* transaction management. Do so before doing other work, so the
* callbacks still can perform work if needed.
*/
RemoveIntermediateResultsDirectory();
ResetShardPlacementTransactionState();
if (CurrentCoordinatedTransactionState == COORD_TRANS_PREPARED)
@ -256,6 +255,8 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
case XACT_EVENT_PRE_COMMIT:
{
RemoveIntermediateResultsDirectory();
/* nothing further to do if there's no managed remote xacts */
if (CurrentCoordinatedTransactionState == COORD_TRANS_NONE)
{