pgsql: Fix fallback implementation for pg_atomic_test_set_flag().

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix fallback implementation for pg_atomic_test_set_flag().
Date: 2023-11-15 21:06:08
Message-ID: E1r3N5M-005cTw-Cs@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/69c32b8b3535f7f367cca90a09d9557d575b270c

Modified Files
--------------
src/include/port/atomics/generic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2023-11-16 00:46:04 pgsql: psql: Add some completion support for CREATE TABLE .. AS
Previous Message Nathan Bossart 2023-11-15 19:44:00 pgsql: Retire MemoryContextResetAndDeleteChildren() macro.