postgresql/src
Jeff Davis 766571be16 Additional write barrier in AdvanceXLInsertBuffer().
First, mark the xlblocks member with InvalidXLogRecPtr, then issue a
write barrier, then initialize it. That ensures that the xlblocks
member doesn't appear valid while the contents are being initialized.

In preparation for reading WAL buffer contents without a lock.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACVfFMfqD5oLzZSQQZWfXiJqd-NdX0_317veP6FuB31QWA@mail.gmail.com
Reviewed-by: Andres Freund
2023-12-19 17:35:54 -08:00
..
backend Additional write barrier in AdvanceXLInsertBuffer(). 2023-12-19 17:35:54 -08:00
bin Remove MSVC scripts 2023-12-20 09:44:37 +09:00
common Remove MSVC scripts 2023-12-20 09:44:37 +09:00
fe_utils Remove unneeded assignments in for loop header 2023-11-21 16:10:27 +01:00
include Move src/bin/pg_verifybackup/parse_manifest.c into src/common. 2023-12-19 15:24:31 -05:00
interfaces Remove MSVC scripts 2023-12-20 09:44:37 +09:00
makefiles Remove distprep 2023-11-06 15:18:04 +01:00
pl Don't specify number of dimensions in cases where we don't know it. 2023-11-17 11:29:46 -05:00
port Remove MSVC scripts 2023-12-20 09:44:37 +09:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Fix bugs in manipulation of large objects. 2023-12-15 13:55:05 -05:00
timezone Remove distprep 2023-11-06 15:18:04 +01:00
tools Remove MSVC scripts 2023-12-20 09:44:37 +09:00
tutorial Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Don't clean initdb files on template creation failure 2023-12-08 13:42:54 +01:00
Makefile.shlib Stop using "-multiply_defined suppress" on macOS. 2023-09-26 21:06:21 -04:00
meson.build Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00