Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0726c76

Browse files
committed
Restore lock level to set vacuum flags
Commit2783898 mistakenly reduced the lock level from exclusive toshared that is acquired to set PGPROC->statusFlags; this was revertedbydcfff74, 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
1 parentdb9f287 commit0726c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/replication/slot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ ReplicationSlotRelease(void)
512512
MyReplicationSlot=NULL;
513513

514514
/* might not have been set when we've been a plain slot */
515-
LWLockAcquire(ProcArrayLock,LW_SHARED);
515+
LWLockAcquire(ProcArrayLock,LW_EXCLUSIVE);
516516
MyProc->statusFlags &= ~PROC_IN_LOGICAL_DECODING;
517517
ProcGlobal->statusFlags[MyProc->pgxactoff]=MyProc->statusFlags;
518518
LWLockRelease(ProcArrayLock);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp