diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-06-08 13:57:24 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-06-08 13:58:10 +1200 |
commit | acefa2cca6a2c2b9c0fd9f25d0c003595bed689e (patch) | |
tree | 79a45702bf6bea1ca818655064e21e1ae82ee292 /src/backend/access/gist/gistscan.c | |
parent | a1c940cc58828b81cd72e04dd264fbc65e46f0de (diff) | |
download | postgresql-acefa2cca6a2c2b9c0fd9f25d0c003595bed689e.tar.gz postgresql-acefa2cca6a2c2b9c0fd9f25d0c003595bed689e.zip |
Fix locking bugs that could corrupt pg_control.
The redo routines for XLOG_CHECKPOINT_{ONLINE,SHUTDOWN} must acquire
ControlFileLock before modifying ControlFile->checkPointCopy, or the
checkpointer could write out a control file with a bad checksum.
Likewise, XLogReportParameters() must acquire ControlFileLock before
modifying 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.com
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions