Restore lock level to set vacuum flags
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 11 Nov 2021 14:03:29 +0000 (11:03 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 11 Nov 2021 14:03:29 +0000 (11:03 -0300)
commit0726c764bc4ec337a0216a546ce41c758d81600d
tree9a57603a39341fc46849c8eebe9f4a98cdb3af22
parentdb9f287711ac49d9799f93f664d6d101ff8f5891
Restore lock level to set vacuum flags

Commit 27838981be9d mistakenly reduced the lock level from exclusive to
shared that is acquired to set PGPROC->statusFlags; this was reverted
by dcfff74fb166, but failed to do so in one spot.  Fix it.

Backpatch to 14.

Noted by Andres Freund.

Discussion: https://postgr.es/m/20211111020724.ggsfhcq3krq5r4hb@alap3.anarazel.de
src/backend/replication/slot.c