mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Restore lock level to set vacuum flags
Commit27838981be
mistakenly reduced the lock level from exclusive to shared that is acquired to set PGPROC->statusFlags; this was reverted bydcfff74fb1
, 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
This commit is contained in:
parent
db9f287711
commit
0726c764bc
@ -512,7 +512,7 @@ ReplicationSlotRelease(void)
|
||||
MyReplicationSlot = NULL;
|
||||
|
||||
/* might not have been set when we've been a plain slot */
|
||||
LWLockAcquire(ProcArrayLock, LW_SHARED);
|
||||
LWLockAcquire(ProcArrayLock, LW_EXCLUSIVE);
|
||||
MyProc->statusFlags &= ~PROC_IN_LOGICAL_DECODING;
|
||||
ProcGlobal->statusFlags[MyProc->pgxactoff] = MyProc->statusFlags;
|
||||
LWLockRelease(ProcArrayLock);
|
||||
|
Loading…
Reference in New Issue
Block a user