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

Skip to content

Commit f972ec5

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 1d77afe commit f972ec5

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
@@ -2096,6 +2096,8 @@ ReorderBufferProcessTXN(ReorderBuffer *rb, ReorderBufferTXN *txn,
20962096
Relation relation = NULL;
20972097
Oid reloid;
20982098

2099+
CHECK_FOR_INTERRUPTS();
2100+
20992101
/*
21002102
* We can't call start stream callback before processing first
21012103
* change.

0 commit comments

Comments
 (0)