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

Commit98d5b08

Browse files
committed
Correct value of LW_SHARED_MASK.
The previous wrong value lead to wrong LOCK_DEBUG output, never showingany shared lock holders.Reported-By: Alexander KorotkovDiscussion: CAPpHfdsPmWqz9FB0AnxJrwp1=KLF0n=-iB+QvR0Q8GSmpFVdUQ@mail.gmail.comBackpatch: 9.5, where the bug was introduced.
1 parentd9cb34a commit98d5b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/storage/lmgr/lwlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ extern slock_t *ShmemLock;
107107

108108
#defineLW_LOCK_MASK((uint32) ((1 << 25)-1))
109109
/* Must be greater than MAX_BACKENDS - which is 2^23-1, so we're fine. */
110-
#defineLW_SHARED_MASK((uint32)(1 <<23))
110+
#defineLW_SHARED_MASK((uint32) ((1 <<24)-1))
111111

112112
/*
113113
* This is indexed by tranche ID and stores metadata for all tranches known

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp