aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-08-17 00:48:44 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-08-17 00:48:44 +0300
commitdcd052c8d20c5359c55f2a101f10a8e6341233cd (patch)
treed9af1cecd500450a9fa708c5523988d9864f9311 /contrib/postgres_fdw/postgres_fdw.c
parentec0a69e49bf41a37b5c2d6f6be66d8abae00ee05 (diff)
downloadpostgresql-dcd052c8d20c5359c55f2a101f10a8e6341233cd.tar.gz
postgresql-dcd052c8d20c5359c55f2a101f10a8e6341233cd.zip
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions