forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit422952e
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 parent1d6fbc3 commit422952e
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 |
| |
| |||
330 | 331 |
| |
331 | 332 |
| |
332 | 333 |
| |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
333 | 342 |
| |
334 | 343 |
| |
335 | 344 |
| |
| |||
419 | 428 |
| |
420 | 429 |
| |
421 | 430 |
| |
422 |
| - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
423 | 436 |
| |
424 | 437 |
| |
425 | 438 |
| |
426 |
| - | |
| 439 | + | |
427 | 440 |
| |
428 | 441 |
| |
429 | 442 |
| |
|
0 commit comments
Comments
(0)