forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfd11b84
committed
Fix locking bugs that could corrupt pg_control.
The redo routines for XLOG_CHECKPOINT_{ONLINE,SHUTDOWN} must acquireControlFileLock before modifying ControlFile->checkPointCopy, or thecheckpointer could write out a control file with a bad checksum.Likewise, XLogReportParameters() must acquire ControlFileLock beforemodifying ControlFile and calling UpdateControlFile().Back-patch to all supported releases.Author: Nathan Bossart <bossartn@amazon.com>Author: Fujii Masao <masao.fujii@oss.nttdata.com>Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>Reviewed-by: Michael Paquier <michael@paquier.xyz>Reviewed-by: Thomas Munro <thomas.munro@gmail.com>Discussion:https://postgr.es/m/70BF24D6-DC51-443F-B55A-95735803842A%40amazon.com1 parent682c28b commitfd11b84
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9647 | 9647 |
| |
9648 | 9648 |
| |
9649 | 9649 |
| |
| 9650 | + | |
| 9651 | + | |
9650 | 9652 |
| |
9651 | 9653 |
| |
9652 | 9654 |
| |
| |||
9655 | 9657 |
| |
9656 | 9658 |
| |
9657 | 9659 |
| |
| 9660 | + | |
| 9661 | + | |
9658 | 9662 |
| |
9659 | 9663 |
| |
9660 | 9664 |
| |
| |||
9879 | 9883 |
| |
9880 | 9884 |
| |
9881 | 9885 |
| |
| 9886 | + | |
9882 | 9887 |
| |
9883 | 9888 |
| |
| 9889 | + | |
9884 | 9890 |
| |
9885 | 9891 |
| |
9886 | 9892 |
| |
| |||
9938 | 9944 |
| |
9939 | 9945 |
| |
9940 | 9946 |
| |
| 9947 | + | |
9941 | 9948 |
| |
9942 | 9949 |
| |
| 9950 | + | |
9943 | 9951 |
| |
9944 | 9952 |
| |
9945 | 9953 |
| |
|
0 commit comments
Comments
(0)