Use standard compare_exchange loop style in ProcArrayGroupClearXid().

Noah Misch <noah@leadboat.com>

Commit: 48cc59ed24f95fa171b12ba1b461e6dc72d62b2b
Author: Noah Misch <noah@leadboat.com>
Date: 2019-10-19T03:21:10Z
Releases: 13.0
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

Files

PathChange+/−
src/backend/storage/ipc/procarray.c modified +1 −1

Discussion