diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-03-13 07:45:11 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-03-13 07:45:11 +0900 |
commit | 77cf6a78de9fa48976d8c9152a48290beb06dc8b (patch) | |
tree | 5304636ebd879a2e2110954210ac38397f82e78e /src/backend/utils/adt/array_userfuncs.c | |
parent | 32dd2c1eff540e454d50a1d59d2d90ab6e70e0b6 (diff) | |
download | postgresql-77cf6a78de9fa48976d8c9152a48290beb06dc8b.tar.gz postgresql-77cf6a78de9fa48976d8c9152a48290beb06dc8b.zip |
Add some asserts based on LWLockHeldByMe() for replication slot statistics
Two assertions checking that ReplicationSlotAllocationLock is acquired
are added to pgstat_create_replslot() and pgstat_drop_replslot(),
corresponding to the routines in charge of the creation and the drop of
replication slot statistics. The code previously relied on this
assumption and documented it in comments, but did not enforce this
policy at runtime.
Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/Ze_p-hmD_yFeVYXg@paquier.xyz
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions