forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit77cf6a7
committed
Add some asserts based on LWLockHeldByMe() for replication slot statistics
Two assertions checking that ReplicationSlotAllocationLock is acquiredare added to pgstat_create_replslot() and pgstat_drop_replslot(),corresponding to the routines in charge of the creation and the drop ofreplication slot statistics. The code previously relied on thisassumption and documented it in comments, but did not enforce thispolicy at runtime.Reviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/Ze_p-hmD_yFeVYXg@paquier.xyz1 parent32dd2c1 commit77cf6a7
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
| 116 | + | |
| 117 | + | |
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
| |||
153 | 155 |
| |
154 | 156 |
| |
155 | 157 |
| |
| 158 | + | |
| 159 | + | |
156 | 160 |
| |
157 | 161 |
| |
158 | 162 |
| |
|
0 commit comments
Comments
(0)