forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2cbe3a9
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 parentfa68594 commit2cbe3a9
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
1068 | 1068 |
| |
1069 | 1069 |
| |
1070 | 1070 |
| |
| 1071 | + | |
1071 | 1072 |
| |
1072 | 1073 |
| |
1073 | 1074 |
| |
|
0 commit comments
Comments
(0)