pgsql: Use standard compare_exchange loop style in ProcArrayGroupClearX

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use standard compare_exchange loop style in ProcArrayGroupClearX
Date: 2019-10-19 03:27:18
Message-ID: E1iLfOg-0005hN-9W@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use standard compare_exchange loop style in ProcArrayGroupClearXid().

Besides style, this might improve performance in the contended case.

Reviewed by Amit Kapila.

Discussion: https://postgr.es/m/20191015035348.GA4166224@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/48cc59ed24f95fa171b12ba1b461e6dc72d62b2b

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-10-19 16:38:53 pgsql: Fix most -Wundef warnings
Previous Message Michael Paquier 2019-10-19 02:25:46 pgsql: Remove last traces of heap_open/close in the tree