- Notifications
You must be signed in to change notification settings - Fork5
Commitb5fe620
committed
Make postmaster restart archiver soon after it dies, even during recovery.
After the archiver dies, postmaster tries to start a new one immediately.But previously this could happen only while server was running normallyeven though archiving was enabled always (i.e., archive_mode was set toalways). So the archiver running during recovery could not restart soonafter it died. This is an oversight in commitffd3774.This commit changes reaper(), postmaster's signal handler to cleanupafter a child process dies, so that it tries to a new archiver even duringrecovery if necessary.Patch by me. Review by Alvaro Herrera.1 parent96ad72d commitb5fe620
2 files changed
+20
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
409 | 420 | | |
410 | 421 | | |
411 | 422 | | |
| |||
1649 | 1660 | | |
1650 | 1661 | | |
1651 | 1662 | | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
| 1663 | + | |
| 1664 | + | |
1664 | 1665 | | |
1665 | | - | |
1666 | | - | |
1667 | 1666 | | |
1668 | 1667 | | |
1669 | 1668 | | |
| |||
2669 | 2668 | | |
2670 | 2669 | | |
2671 | 2670 | | |
2672 | | - | |
| 2671 | + | |
2673 | 2672 | | |
2674 | 2673 | | |
2675 | 2674 | | |
| |||
2810 | 2809 | | |
2811 | 2810 | | |
2812 | 2811 | | |
2813 | | - | |
| 2812 | + | |
2814 | 2813 | | |
2815 | 2814 | | |
2816 | 2815 | | |
| |||
4833 | 4832 | | |
4834 | 4833 | | |
4835 | 4834 | | |
4836 | | - | |
4837 | | - | |
4838 | | - | |
| 4835 | + | |
4839 | 4836 | | |
4840 | | - | |
4841 | 4837 | | |
4842 | 4838 | | |
4843 | 4839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments
Comments
(0)