forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0b1d1a0
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 parente94f2bc commit0b1d1a0
1 file changed
+16
-8
lines changedLines changed: 16 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5677 | 5677 |
| |
5678 | 5678 |
| |
5679 | 5679 |
| |
| 5680 | + | |
5680 | 5681 |
| |
5681 | 5682 |
| |
5682 | 5683 |
| |
| |||
5698 | 5699 |
| |
5699 | 5700 |
| |
5700 | 5701 |
| |
5701 |
| - | |
| 5702 | + | |
| 5703 | + | |
5702 | 5704 |
| |
5703 | 5705 |
| |
5704 | 5706 |
| |
| |||
5711 | 5713 |
| |
5712 | 5714 |
| |
5713 | 5715 |
| |
| 5716 | + | |
5714 | 5717 |
| |
| 5718 | + | |
| 5719 | + | |
5715 | 5720 |
| |
5716 |
| - | |
| 5721 | + | |
5717 | 5722 |
| |
5718 | 5723 |
| |
5719 | 5724 |
| |
| |||
5722 | 5727 |
| |
5723 | 5728 |
| |
5724 | 5729 |
| |
| 5730 | + | |
| 5731 | + | |
| 5732 | + | |
| 5733 | + | |
| 5734 | + | |
5725 | 5735 |
| |
5726 |
| - | |
| 5736 | + | |
5727 | 5737 |
| |
5728 | 5738 |
| |
5729 | 5739 |
| |
| |||
5749 | 5759 |
| |
5750 | 5760 |
| |
5751 | 5761 |
| |
5752 |
| - | |
5753 |
| - | |
| 5762 | + | |
| 5763 | + | |
5754 | 5764 |
| |
5755 | 5765 |
| |
5756 | 5766 |
| |
| |||
5957 | 5967 |
| |
5958 | 5968 |
| |
5959 | 5969 |
| |
5960 |
| - | |
5961 |
| - | |
5962 | 5970 |
| |
5963 | 5971 |
| |
5964 | 5972 |
| |
5965 | 5973 |
| |
5966 | 5974 |
| |
5967 | 5975 |
| |
5968 | 5976 |
| |
| 5977 | + | |
5969 | 5978 |
| |
5970 | 5979 |
| |
5971 | 5980 |
| |
5972 | 5981 |
| |
5973 |
| - | |
5974 | 5982 |
| |
5975 | 5983 |
| |
5976 | 5984 |
| |
|
0 commit comments
Comments
(0)