forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit63efab4
committed
Allow DSM allocation to be interrupted.
Chris Travers reported that the startup process can repeatedly try tocancel a backend that is in a posix_fallocate()/EINTR loop and cause itto loop forever. Teach the retry loop to give up if an interrupt ispending. Don't actually check for interrupts in that loop though,because a non-local exit would skip some clean-up code in the caller.Back-patch to 9.4 where DSM was added (and posix_fallocate() was laterback-patched).Author: Chris TraversReviewed-by: Ildar Musin, Murat Kabilov, Oleksii KliukinTested-by: Oleksii KliukinDiscussion:https://postgr.es/m/CAN-RpxB-oeZve_J3SM_6%3DHXPmvEG%3DHX%2B9V9pi8g2YR7YW0rBBg%40mail.gmail.com1 parent3d65e40 commit63efab4
1 file changed
+15
-2
lines changedLines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| |||
333 | 334 |
| |
334 | 335 |
| |
335 | 336 |
| |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
336 | 345 |
| |
337 | 346 |
| |
338 | 347 |
| |
| |||
422 | 431 |
| |
423 | 432 |
| |
424 | 433 |
| |
425 |
| - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
426 | 439 |
| |
427 | 440 |
| |
428 | 441 |
| |
429 |
| - | |
| 442 | + | |
430 | 443 |
| |
431 | 444 |
| |
432 | 445 |
| |
|
0 commit comments
Comments
(0)