- Notifications
You must be signed in to change notification settings - Fork5
Commitee0e525
committed
Arrange to fsync the contents of lockfiles (both postmaster.pid and the
socket lockfile) when writing them. The lack of an fsync here may wellexplain two different reports we've seen of corrupted lockfile contents,which doesn't particularly bother the running server but can prevent anew server from starting if the old one crashes. Per suggestion fromAlvaro.Back-patch to all supported versions.1 parent66b1403 commitee0e525
1 file changed
+24
-3
lines changedLines changed: 24 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
818 | 818 |
| |
819 | 819 |
| |
820 | 820 |
| |
| 821 | + | |
| 822 | + | |
| 823 | + | |
821 | 824 |
| |
822 | 825 |
| |
823 | 826 |
| |
| |||
881 | 884 |
| |
882 | 885 |
| |
883 | 886 |
| |
884 |
| - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
885 | 899 |
| |
886 | 900 |
| |
887 | 901 |
| |
| |||
1042 | 1056 |
| |
1043 | 1057 |
| |
1044 | 1058 |
| |
1045 |
| - | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1046 | 1067 |
| |
1047 | 1068 |
| |
1048 | 1069 |
| |
|
0 commit comments
Comments
(0)