Convert FastPathStrongRelationLocks to atomics. Currently, the lock counts are unsigned integers protected by a spinlock. By converting them to atomic variables, we can remove the spinlock and the FastPathStrongRelationLockData wrapper struct.
Reviewed-by: Zsolt Parragi <[email protected]> Tested-by: solai v <[email protected]> Discussion: https://postgr.es/m/alAJeRRzehDjLaF1%40nathan Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/74c77052bc20017076100f0649ca0f44b1b98c29 Modified Files -------------- src/backend/storage/lmgr/lock.c | 57 ++++++++++++---------------------------- src/tools/pgindent/typedefs.list | 1 - 2 files changed, 17 insertions(+), 41 deletions(-)
