]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix fallback implementation for pg_atomic_test_set_flag().
authorNathan Bossart <nathan@postgresql.org>
Wed, 15 Nov 2023 21:04:18 +0000 (15:04 -0600)
committerNathan Bossart <nathan@postgresql.org>
Wed, 15 Nov 2023 21:04:43 +0000 (15:04 -0600)
commit231a445ea31d12d27d6d7ce93eb7c2eec5bb8a09
treef65ca0aeb3b5a0f9385452ec4ab1046fde4a68b0
parent7836f6838d8c5c976fc4ee0dffd02ecd3ae7d106
Fix fallback implementation for pg_atomic_test_set_flag().

The fallback implementation of pg_atomic_test_set_flag() that uses
atomic-exchange gives pg_atomic_exchange_u32_impl() an extra
argument.  This issue has been present since the introduction of
the atomics API in commit b64d92f1a5.

Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/20231114035439.GA1809032%40nathanxps13
Backpatch-through: 12
src/include/port/atomics/generic.h