- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit44c2e5b
committed
Do CHECK_FOR_INTERRUPTS inside, not before, scanGetItem.
The CHECK_FOR_INTERRUPTS call in gingetbitmap turns out to beinadequate to prevent a long uninterruptible loop, becausewe now know a case where looping occurs within scanGetItem.While the next patch will fix the bug that caused that, itseems foolish to assume that no similar patterns are possible.Let's do the CFI within scanGetItem's retry loop, instead.This demonstrably allows canceling out of the loop exhibitedin bug #19031.Bug: #19031Reported-by: Tim Wood <washwithcare@gmail.com>Author: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/19031-0638148643d25548@postgresql.orgBackpatch-through: 131 parent8951941 commit44c2e5b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
| 1330 | + | |
| 1331 | + | |
1330 | 1332 | | |
1331 | 1333 | | |
1332 | 1334 | | |
| |||
1966 | 1968 | | |
1967 | 1969 | | |
1968 | 1970 | | |
1969 | | - | |
1970 | | - | |
1971 | 1971 | | |
1972 | 1972 | | |
1973 | 1973 | | |
| |||
0 commit comments
Comments
(0)