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)
commit9aa91cb33b70c5bc207e1a136d60f742acd67c32
tree84a21a541793cba629b36713df5a4d24d98b8d13
parentb609db7155d9c94011a6e16d0e6a60d62e322694
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