Use 64-bit atomics for xlblocks array elements.
Jeff Davis <jdavis@postgresql.org>
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_317veP6FuB31QWA@mail.gmail.com Reviewed-by: Andres Freund
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +19 −21 |
Discussion
- Improve WALRead() to suck data directly from WAL buffers when possible 95 messages · 2022-12-09 → 2024-04-24