aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xloginsert.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2021-06-28 18:34:56 -0700
committerNoah Misch <noah@leadboat.com>2021-06-28 18:34:56 -0700
commitcc2c7d65fc27e877c9f407587b0b92d46cd6dd16 (patch)
tree9f9905d1febabe46b2bdede922acc49b8c7408b4 /src/backend/access/transam/xloginsert.c
parent2b3e4672f7602a6bb46a0735a1b41b635508b290 (diff)
downloadpostgresql-cc2c7d65fc27e877c9f407587b0b92d46cd6dd16.tar.gz
postgresql-cc2c7d65fc27e877c9f407587b0b92d46cd6dd16.zip
Skip WAL recycling and preallocation during archive recovery.
The previous commit addressed the chief consequences of a race condition between InstallXLogFileSegment() and KeepFileRestoredFromArchive(). Fix three lesser consequences. A spurious durable_rename_excl() LOG message remained possible. KeepFileRestoredFromArchive() wasted the proceeds of WAL recycling and preallocation. Finally, XLogFileInitInternal() could return a descriptor for a file that KeepFileRestoredFromArchive() had already unlinked. That felt like a recipe for future bugs. Discussion: https://postgr.es/m/20210202151416.GB3304930@rfd.leadboat.com
Diffstat (limited to 'src/backend/access/transam/xloginsert.c')
0 files changed, 0 insertions, 0 deletions