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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy