8000 Add CHECK_FOR_INTERRUPTS while restoring changes during decoding. · postgres/postgres@5c51afe · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c51afe

Browse files
author
Amit Kapila
committed
Add CHECK_FOR_INTERRUPTS while restoring changes during decoding.
Previously in commit 42681df, we added CFI during decoding changes but missed another similar case that can happen while restoring changes spilled to disk back into memory in a loop. Reported-by: Robert Haas Author: Amit Kapila Backpatch-through: 10 Discussion: https://postgr.es/m/CA+TgmoaLObg0QbstbC8ykDwOdD1bDkr4AbPpB=0DPgA2JW0mFg@mail.gmail.com
1 parent 216af69 commit 5c51afe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/replication/logical/reorderbuffer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,6 +2586,8 @@ ReorderBufferRestoreChanges(ReorderBuffer *rb, ReorderBufferTXN *txn,
25862586
int readBytes;
25872587
ReorderBufferDiskChange *ondisk;
25882588

2589+
CHECK_FOR_INTERRUPTS();
2590+
25892591
if (*fd == -1)
25902592
{
25912593
char path[MAXPGPATH];

0 commit comments

Comments
 (0)
0