git.postgresql.org Git - postgresql.git/commit
2023年12月20日 01:35:54 +0000 (17:35 -0800)
2023年12月20日 01:35:54 +0000 (17:35 -0800)
commit 766571be16598b401b5527208847145edc6be1f4
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
This is the main PostgreSQL git repository.
RSS
Atom