Skip to content

Commit a6db833

Browse files
committed
Do not close spill file because it is automatically closed on transaction commit/rollback
1 parent ac84793 commit a6db833

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/mmts/pglogical_apply.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,11 @@ void MtmExecutor(void* work, size_t size)
11471147
MTM_LOG2("%d: REMOTE end abort transaction %llu", MyProcPid, (long64)MtmGetCurrentTransactionId());
11481148
}
11491149
PG_END_TRY();
1150+
#if 0 /* spill file is expecrted to be closed by tranaction commit or rollback */
11501151
if (spill_file >= 0) {
11511152
MtmCloseSpillFile(spill_file);
11521153
}
1154+
#endif
11531155
MemoryContextResetAndDeleteChildren(MtmApplyContext);
11541156
}
11551157

0 commit comments

Comments
 (0)