forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd85fc4b
committed
Improve locking around InjectionPointRun()
As coded, an injection point could be loaded into the local cachewithout the LWLock InjectionPointLock taken, hence a point detached andre-attached concurrently of a point running calling InjectionPointRun()may finish by loading a callback it did no set initially. Based on allthe cases discussed until now on the lists, it is fine to delay the lockrelease until the callback is run, so let's do that.While on it, remove a useless LWLockRelease() called before an error inInjectionPointAttach().Per discussion with Heikki Linnakangas and Noah Misch.Discussion:https://postgr.es/m/e1ffb822-054e-4006-ac06-50532767f75b@iki.fi1 parent4a7f91b commitd85fc4b
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
237 |
| - | |
238 |
| - | |
239 | 237 |
| |
240 |
| - | |
241 | 238 |
| |
242 | 239 |
| |
243 | 240 |
| |
| |||
300 | 297 |
| |
301 | 298 |
| |
302 | 299 |
| |
303 |
| - | |
304 | 300 |
| |
305 | 301 |
| |
306 | 302 |
| |
| |||
309 | 305 |
| |
310 | 306 |
| |
311 | 307 |
| |
| 308 | + | |
312 | 309 |
| |
313 | 310 |
| |
314 | 311 |
| |
| |||
343 | 340 |
| |
344 | 341 |
| |
345 | 342 |
| |
| 343 | + | |
| 344 | + | |
| 345 | + | |
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
|
0 commit comments
Comments
(0)