Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b50433

Browse files
author
Amit Kapila
committed
Add CHECK_FOR_INTERRUPTS while decoding changes.
While decoding changes in a loop, if we skip all the changes there is no CFI making the loop uninterruptible. Reported-by: Whale Song and Andrey Borodin Bug: 17580 Author: Masahiko Sawada Reviwed-by: Amit Kapila Backpatch-through: 10 Discussion: https://postgr.es/m/[email protected] Discussion: https://postgr.es/m/[email protected]
1 parent 64f0bc0 commit 6b50433

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
@@ -1525,6 +1525,8 @@ ReorderBufferCommit(ReorderBuffer *rb, TransactionId xid,
15251525
Relation relation = NULL;
15261526
Oid reloid;
15271527

1528+
CHECK_FOR_INTERRUPTS();
1529+
15281530
switch (change->action)
15291531
{
15301532
case REORDER_BUFFER_CHANGE_INTERNAL_SPEC_CONFIRM:

0 commit comments

Comments
 (0)