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

Commit9aa91cb

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 parentb609db7 commit9aa91cb

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
@@ -511,7 +511,7 @@ ReplicationSlotRelease(void)
511511
MyReplicationSlot=NULL;
512512

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp