aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-04-06 19:55:32 -0700
committerAndres Freund <andres@anarazel.de>2018-04-06 19:55:32 -0700
commit8c3debbbf61892dabd8b6f3f8d55e600a7901f2b (patch)
treef6e3c9fa21f3090138b2a95f6ebdc8fe1d5a22e9 /src/backend/access/gist/gist.c
parenteb2a0e00b18aedabd76f5442e38f4bf5d1b94974 (diff)
downloadpostgresql-8c3debbbf61892dabd8b6f3f8d55e600a7901f2b.tar.gz
postgresql-8c3debbbf61892dabd8b6f3f8d55e600a7901f2b.zip
Fix and improve pg_atomic_flag fallback implementation.
The atomics fallback implementation for pg_atomic_flag was broken, returning the inverted value from pg_atomic_test_set_flag(). This was unnoticed because a) atomic flags were unused until recently b) the test code wasn't run when the fallback implementation was in use (because it didn't allow to test for some edge cases). Fix the bug, and improve the fallback so it has the same behaviour as the non-fallback implementation in the problematic edge cases. That breaks ABI compatibility in the back branches when fallbacks are in use, but given they were broken until now... Author: Andres Freund Reported-by: Daniel Gustafsson Discussion: https://postgr.es/m/FB948276-7B32-4B77-83E6-D00167F8EEB4@yesql.se https://postgr.es/m/20180406233854.uni2h3mbnveczl32@alap3.anarazel.de Backpatch: 9.5-, where the atomics abstraction was introduced.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions