Use 64-bit atomics for xlblocks array elements.

In preparation for reading the contents of WAL buffers without a
lock. Also, avoids the previously-needed comment in GetXLogBuffer()
explaining why it's safe from torn reads.

Author: Bharath Rupireddy
Discussion: 
https://postgr.es/m/calj2acvffmfqd5olzzsqqzwfxijqd-ndx0_317vep6fub31...@mail.gmail.com
Reviewed-by: Andres Freund

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c3a8e2a7cb16d55e3b757934b538cb8b8a0eab02

Modified Files
--------------
src/backend/access/transam/xlog.c | 40 +++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 21 deletions(-)

Reply via email to