Remove WaitEventCustomCounterData.
The spinlock is unnecessary because the counter is only ever
accessed with WaitEventCustomLock held exclusively. This commit
removes the struct definition and converts WaitEventCustomCounter
to a pointer to an integer in shared memory.
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/ak8MeTS9QBmz6DKt%40nathan
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8f7af125e03739b66998a75840dedd943ec3624e
Modified Files
--------------
src/backend/utils/activity/wait_event.c | 30 +++++++-----------------------
src/tools/pgindent/typedefs.list | 1 -
2 files changed, 7 insertions(+), 24 deletions(-)