forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit36758c4
committed
Add CHECK_FOR_INTERRUPTS() to the repeat() function
The repeat() function loops for potentially a long time withoutever checking for interrupts. This prevents, for example, a querycancel from interrupting until the work is all done. Fix byinserting a CHECK_FOR_INTERRUPTS() into the loop.Backpatch to all supported versions.Discussion:https://www.postgresql.org/message-id/flat/8692553c-7fe8-17d9-cbc1-7cddb758f4c6%40joeconway.com1 parent34301c9 commit36758c4
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| |||
1062 | 1062 |
| |
1063 | 1063 |
| |
1064 | 1064 |
| |
| 1065 | + | |
1065 | 1066 |
| |
1066 | 1067 |
| |
1067 | 1068 |
| |
|
0 commit comments
Comments
(0)