Content-Length: 257741 | pFad | http://github.com/postgrespro/postgres_cluster/commit/98d5b084d23b0304569ef2c1b4794754166cf0a5

2E Correct value of LW_SHARED_MASK. · postgrespro/postgres_cluster@98d5b08 · GitHub
Skip to content

Commit 98d5b08

Browse files
committed
Correct value of LW_SHARED_MASK.
The previous wrong value lead to wrong LOCK_DEBUG output, never showing any shared lock holders. Reported-By: Alexander Korotkov Discussion: CAPpHfdsPmWqz9FB0AnxJrwp1=KLF0n=-iB+QvR0Q8GSmpFVdUQ@mail.gmail.com Backpatch: 9.5, where the bug was introduced.
1 parent d9cb34a commit 98d5b08

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
#define LW_LOCK_MASK ((uint32) ((1 << 25)-1))
109109
/* Must be greater than MAX_BACKENDS - which is 2^23-1, so we're fine. */
110-
#define LW_SHARED_MASK ((uint32)(1 << 23))
110+
#define LW_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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/98d5b084d23b0304569ef2c1b4794754166cf0a5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy