diff options
author | Noah Misch <noah@leadboat.com> | 2016-02-19 22:47:50 -0500 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2016-02-19 22:48:04 -0500 |
commit | 377a1af56a5ad6e5c47e0a5141abbd912169f750 (patch) | |
tree | e982975c4b5cc920213f4882c999013960c66dd7 /src/backend/utils/adt/jsonb.c | |
parent | c479024d325a02e0eb352e5b7f1873b4c51a5205 (diff) | |
download | postgresql-377a1af56a5ad6e5c47e0a5141abbd912169f750.tar.gz postgresql-377a1af56a5ad6e5c47e0a5141abbd912169f750.zip |
Call xlc __isync() after, not before, associated compare-and-swap.
Architecture reference material specifies this order, and s_lock.h
inline assembly agrees. The former order failed to provide mutual
exclusion to lwlock.c and perhaps to other clients. The two xlc
buildfarm members, hornet and mandrill, have failed sixteen times with
duplicate key errors involving pg_class_oid_index or pg_type_oid_index.
Back-patch to 9.5, where commit b64d92f1a5602c55ee8b27a7ac474f03b7aee340
introduced atomics.
Reviewed by Andres Freund and Tom Lane.
Diffstat (limited to 'src/backend/utils/adt/jsonb.c')
0 files changed, 0 insertions, 0 deletions