aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2016-02-19 22:47:50 -0500
committerNoah Misch <noah@leadboat.com>2016-02-19 22:48:04 -0500
commit377a1af56a5ad6e5c47e0a5141abbd912169f750 (patch)
treee982975c4b5cc920213f4882c999013960c66dd7 /src/backend/utils/adt/jsonb.c
parentc479024d325a02e0eb352e5b7f1873b4c51a5205 (diff)
downloadpostgresql-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