diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-03-02 17:40:48 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-03-02 17:40:48 -0500 |
commit | 96d2df840b0669aad6792b459805367ba70641af (patch) | |
tree | 478f8e9f5667088dae5a3097c110e2311f14c849 /src/backend/utils/adt/selfuncs.c | |
parent | 529137cac9a8f0db6cca23a5c305b533cd2dd880 (diff) |
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 itself
with VM pages.
Amit Kapila and Tom Lane
Discussion: https://postgr.es/m/CAA4eK1KJKwhc=isgTQHjM76CAdVswzNeAuZkh_cx-6QgGkSEgA@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/selfuncs.c')
0 files changed, 0 insertions, 0 deletions