forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit76ec457
committed
Fix VM buffer pin management in heap_lock_updated_tuple_rec().
Sloppy coding in this function could lead to leaking a VM buffer pin,or to attempting to free the same pin twice. Repair. While at it,reduce the code's tendency to free and reacquire the same page pin.Back-patch to 9.6; before that, this routine did not concern itselfwith VM pages.Amit Kapila and Tom LaneDiscussion:https://postgr.es/m/CAA4eK1KJKwhc=isgTQHjM76CAdVswzNeAuZkh_cx-6QgGkSEgA@mail.gmail.com1 parentccd6504 commit76ec457
1 file changed
+16
-8
lines changedLines changed: 16 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5635 | 5635 |
| |
5636 | 5636 |
| |
5637 | 5637 |
| |
| 5638 | + | |
5638 | 5639 |
| |
5639 | 5640 |
| |
5640 | 5641 |
| |
| |||
5656 | 5657 |
| |
5657 | 5658 |
| |
5658 | 5659 |
| |
5659 |
| - | |
| 5660 | + | |
| 5661 | + | |
5660 | 5662 |
| |
5661 | 5663 |
| |
5662 | 5664 |
| |
| |||
5669 | 5671 |
| |
5670 | 5672 |
| |
5671 | 5673 |
| |
| 5674 | + | |
5672 | 5675 |
| |
| 5676 | + | |
| 5677 | + | |
5673 | 5678 |
| |
5674 |
| - | |
| 5679 | + | |
5675 | 5680 |
| |
5676 | 5681 |
| |
5677 | 5682 |
| |
| |||
5680 | 5685 |
| |
5681 | 5686 |
| |
5682 | 5687 |
| |
| 5688 | + | |
| 5689 | + | |
| 5690 | + | |
| 5691 | + | |
| 5692 | + | |
5683 | 5693 |
| |
5684 |
| - | |
| 5694 | + | |
5685 | 5695 |
| |
5686 | 5696 |
| |
5687 | 5697 |
| |
| |||
5707 | 5717 |
| |
5708 | 5718 |
| |
5709 | 5719 |
| |
5710 |
| - | |
5711 |
| - | |
| 5720 | + | |
| 5721 | + | |
5712 | 5722 |
| |
5713 | 5723 |
| |
5714 | 5724 |
| |
| |||
5915 | 5925 |
| |
5916 | 5926 |
| |
5917 | 5927 |
| |
5918 |
| - | |
5919 |
| - | |
5920 | 5928 |
| |
5921 | 5929 |
| |
5922 | 5930 |
| |
5923 | 5931 |
| |
5924 | 5932 |
| |
5925 | 5933 |
| |
5926 | 5934 |
| |
| 5935 | + | |
5927 | 5936 |
| |
5928 | 5937 |
| |
5929 | 5938 |
| |
5930 | 5939 |
| |
5931 |
| - | |
5932 | 5940 |
| |
5933 | 5941 |
| |
5934 | 5942 |
| |
|
0 commit comments
Comments
(0)