Skip to content

Commit e95d8b9

Browse files
Amit Kapilareshke
authored andcommitted
Add CHECK_FOR_INTERRUPTS while restoring changes during decoding.
Previously in commit 42681dffaf, 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 a8d5962 commit e95d8b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/backend/replication/logical/reorderbuffer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4103,6 +4103,8 @@ ReorderBufferRestoreChanges(ReorderBuffer *rb, ReorderBufferTXN *txn,
41034103
int readBytes;
41044104
ReorderBufferDiskChange *ondisk;
41054105

4106+
CHECK_FOR_INTERRUPTS();
4107+
41064108
if (*fd == -1)
41074109
{
41084110
char path[MAXPGPATH];

0 commit comments

Comments
 (0)