- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit96d2df8
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 parent529137c commit96d2df8
1 file changed
+16
-8
lines changedLines changed: 16 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5661 | 5661 |
| |
5662 | 5662 |
| |
5663 | 5663 |
| |
| 5664 | + | |
5664 | 5665 |
| |
5665 | 5666 |
| |
5666 | 5667 |
| |
| |||
5682 | 5683 |
| |
5683 | 5684 |
| |
5684 | 5685 |
| |
5685 |
| - | |
| 5686 | + | |
| 5687 | + | |
5686 | 5688 |
| |
5687 | 5689 |
| |
5688 | 5690 |
| |
| |||
5695 | 5697 |
| |
5696 | 5698 |
| |
5697 | 5699 |
| |
| 5700 | + | |
5698 | 5701 |
| |
| 5702 | + | |
| 5703 | + | |
5699 | 5704 |
| |
5700 |
| - | |
| 5705 | + | |
5701 | 5706 |
| |
5702 | 5707 |
| |
5703 | 5708 |
| |
| |||
5706 | 5711 |
| |
5707 | 5712 |
| |
5708 | 5713 |
| |
| 5714 | + | |
| 5715 | + | |
| 5716 | + | |
| 5717 | + | |
| 5718 | + | |
5709 | 5719 |
| |
5710 |
| - | |
| 5720 | + | |
5711 | 5721 |
| |
5712 | 5722 |
| |
5713 | 5723 |
| |
| |||
5733 | 5743 |
| |
5734 | 5744 |
| |
5735 | 5745 |
| |
5736 |
| - | |
5737 |
| - | |
| 5746 | + | |
| 5747 | + | |
5738 | 5748 |
| |
5739 | 5749 |
| |
5740 | 5750 |
| |
| |||
5941 | 5951 |
| |
5942 | 5952 |
| |
5943 | 5953 |
| |
5944 |
| - | |
5945 |
| - | |
5946 | 5954 |
| |
5947 | 5955 |
| |
5948 | 5956 |
| |
5949 | 5957 |
| |
5950 | 5958 |
| |
5951 | 5959 |
| |
5952 | 5960 |
| |
| 5961 | + | |
5953 | 5962 |
| |
5954 | 5963 |
| |
5955 | 5964 |
| |
5956 | 5965 |
| |
5957 |
| - | |
5958 | 5966 |
| |
5959 | 5967 |
| |
5960 | 5968 |
| |
|
0 commit comments
Comments
(0)