diff options
author | Noah Misch <noah@leadboat.com> | 2024-10-24 09:16:14 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2024-10-24 09:16:20 -0700 |
commit | a0c0078b13552e89d9a8667bbe32f1748be1f160 (patch) | |
tree | 0ef3057a144c4fbdabaa3ca5fe41891903cc02c7 /src/backend/access/heap/heapam.c | |
parent | 0b8fb9e9239b5d2de375f85012354e1ff977b81c (diff) |
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: https://postgr.es/m/6c92f59b-f5bc-e58c-9bdd-d1f21c17c786@gmail.com
Diffstat (limited to 'src/backend/access/heap/heapam.c')
-rw-r--r-- | src/backend/access/heap/heapam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index d07b03823e5..e6c1762ab04 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -6069,10 +6069,9 @@ heap_inplace_lock(Relation relation, LockTupleMode lockmode = LockTupleNoKeyExclusive; MultiXactStatus mxact_status = MultiXactStatusNoKeyUpdate; int remain; - bool current_is_member; if (DoesMultiXactIdConflict((MultiXactId) xwait, infomask, - lockmode, ¤t_is_member)) + lockmode, NULL)) { LockBuffer(buffer, BUFFER_LOCK_UNLOCK); ret = false; |