Fix pg_atomic_u64 initialization.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Fix pg_atomic_u64 initialization. As Andres pointed out, pg_atomic_init_u64 must be used to initialize an atomic variable, before it can be accessed with the actual atomic ops. Trying to use pg_atomic_write_u64 on an uninitialized variable leads to a failure with the fallback implementation that uses a spinlock. Discussion: https://www.postgresql.org/message-id/20170816191346.d3ke5tpshhco4bnd%40alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +1 −1 |
Discussion
- Atomics for heap_parallelscan_nextpage() 32 messages · 2017-05-06 → 2017-08-17