- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit28d27cf
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 parent9217dee commit28d27cf
1 file changed
+3
-1
lines changedLines changed: 3 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 |
| |
| |||
721 | 721 |
| |
722 | 722 |
| |
723 | 723 |
| |
| 724 | + | |
724 | 725 |
| |
725 | 726 |
| |
726 | 727 |
| |
| |||
875 | 876 |
| |
876 | 877 |
| |
877 | 878 |
| |
| 879 | + | |
878 | 880 |
| |
879 | 881 |
| |
880 | 882 |
| |
|
0 commit comments
Comments
(0)