Stop reading uninitialized memory in heap_inplace_lock().
authorNoah Misch <noah@leadboat.com>
Thu, 24 Oct 2024 16:16:14 +0000 (09:16 -0700)
committerNoah Misch <noah@leadboat.com>
Thu, 24 Oct 2024 16:16:20 +0000 (09:16 -0700)
commita0c0078b13552e89d9a8667bbe32f1748be1f160
tree0ef3057a144c4fbdabaa3ca5fe41891903cc02c7
parent0b8fb9e9239b5d2de375f85012354e1ff977b81c
Stop reading uninitialized memory in heap_inplace_lock().

Stop computing a never-used value.  This removes the read; the read had
no functional implications.  Back-patch to v12, like commit
a07e03fd8fa7daf4d1356f7cb501ffe784ea6257.

Reported by Alexander Lakhin.

Discussion: http://postgr.es/m/6c92f59b-f5bc-e58c-9bdd-d1f21c17c786@gmail.com
src/backend/access/heap/heapam.c
src/test/isolation/expected/intra-grant-inplace.out
src/test/isolation/specs/intra-grant-inplace.spec