Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 08d32c6

Browse files
knizhnikkelvich
authored andcommitted
Do not close spill file because it is automatically closed on transaction commit/rollback
1 parent 979a388 commit 08d32c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pglogical_apply.c

+2
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)