forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit72766ad
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 parentb944b1d commit72766ad
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9539 | 9539 |
| |
9540 | 9540 |
| |
9541 | 9541 |
| |
| 9542 | + | |
| 9543 | + | |
9542 | 9544 |
| |
9543 | 9545 |
| |
9544 | 9546 |
| |
| |||
9548 | 9550 |
| |
9549 | 9551 |
| |
9550 | 9552 |
| |
| 9553 | + | |
| 9554 | + | |
9551 | 9555 |
| |
9552 | 9556 |
| |
9553 | 9557 |
| |
| |||
9772 | 9776 |
| |
9773 | 9777 |
| |
9774 | 9778 |
| |
| 9779 | + | |
9775 | 9780 |
| |
| 9781 | + | |
9776 | 9782 |
| |
9777 | 9783 |
| |
9778 | 9784 |
| |
| |||
9829 | 9835 |
| |
9830 | 9836 |
| |
9831 | 9837 |
| |
| 9838 | + | |
9832 | 9839 |
| |
| 9840 | + | |
9833 | 9841 |
| |
9834 | 9842 |
| |
9835 | 9843 |
| |
|
0 commit comments
Comments
(0)