Commit e8b4a23
committed
<
10000
div class="CommitHeader-module__commit-message-container--nl1pf">
Arrange to fsync the contents of lockfiles (both postmaster.pid and the
socket lockfile) when writing them. The lack of an fsync here may well
explain two different reports we've seen of corrupted lockfile contents,
which doesn't particularly bother the running server but can prevent a
new server from starting if the old one crashes. Per suggestion from
Alvaro.
Back-patch to all supported versions.1 parent 4d1dd8d commit e8b4a23
1 file changed
+19
-1
lines changedLines changed: 19 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
787 | 787 |
| |
788 | 788 |
| |
789 | 789 |
| |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
790 | 801 |
| |
791 | 802 |
| |
792 | 803 |
| |
| |||
950 | 961 |
| |
951 | 962 |
| |
952 | 963 |
| |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
953 | 971 |
| |
954 | 972 |
| |
955 | 973 |
| |
|
0 commit comments