pgsql: Fix and improve pg_atomic_flag fallback implementation.

2018-04-06 Thread Andres Freund
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 fallba

pgsql: Fix and improve pg_atomic_flag fallback implementation.

2018-04-06 Thread Andres Freund
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 fallba

pgsql: Fix and improve pg_atomic_flag fallback implementation.

2018-04-06 Thread Andres Freund
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 fallba

pgsql: Fix and improve pg_atomic_flag fallback implementation.

2018-04-06 Thread Andres Freund
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 fallba