- Notifications
You must be signed in to change notification settings - Fork5
Commitf47b602
committed
Fix bogus lock release in RemovePolicyById and RemoveRoleFromObjectPolicy.
Can't release the AccessExclusiveLock on the target table until commit.Otherwise there is a race condition whereby other backends might serviceour cache invalidation signals before they can actually see the updatedcatalog rows.Just to add insult to injury, RemovePolicyById was closing the rel (withincorrect lock drop) and then passing the now-dangling rel pointer toCacheInvalidateRelcache. Probably the reason this doesn't fall over onCLOBBER_CACHE buildfarm members is that some outer level of the DROP logicis still holding the rel open ... but it'd have bit us on the arseeventually, no doubt.1 parentc1611db commitf47b602
1 file changed
+10
-5
lines changedLines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
373 |
| - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
374 | 377 |
| |
375 | 378 |
| |
376 | 379 |
| |
| |||
390 | 393 |
| |
391 | 394 |
| |
392 | 395 |
| |
393 |
| - | |
394 | 396 |
| |
395 | 397 |
| |
396 | 398 |
| |
| |||
400 | 402 |
| |
401 | 403 |
| |
402 | 404 |
| |
403 |
| - | |
404 | 405 |
| |
405 | 406 |
| |
| 407 | + | |
| 408 | + | |
406 | 409 |
| |
407 | 410 |
| |
408 | 411 |
| |
| |||
657 | 660 |
| |
658 | 661 |
| |
659 | 662 |
| |
660 |
| - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
661 | 666 |
| |
662 | 667 |
| |
663 | 668 |
| |
| |||
734 | 739 |
| |
735 | 740 |
| |
736 | 741 |
| |
737 |
| - | |
| 742 | + | |
738 | 743 |
| |
739 | 744 |
| |
740 | 745 |
| |
|
0 commit comments
Comments
(0)