mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Make all built-in lwlock tranche IDs fixed.
This makes the values more stable, which seems like a good thing for anybody who needs to look at at them. Alexander Korotkov and Amit Kapila
This commit is contained in:
@@ -1831,10 +1831,12 @@ MultiXactShmemInit(void)
|
||||
|
||||
SimpleLruInit(MultiXactOffsetCtl,
|
||||
"multixact_offset", NUM_MXACTOFFSET_BUFFERS, 0,
|
||||
MultiXactOffsetControlLock, "pg_multixact/offsets");
|
||||
MultiXactOffsetControlLock, "pg_multixact/offsets",
|
||||
LWTRANCHE_MXACTOFFSET_BUFFERS);
|
||||
SimpleLruInit(MultiXactMemberCtl,
|
||||
"multixact_member", NUM_MXACTMEMBER_BUFFERS, 0,
|
||||
MultiXactMemberControlLock, "pg_multixact/members");
|
||||
MultiXactMemberControlLock, "pg_multixact/members",
|
||||
LWTRANCHE_MXACTMEMBER_BUFFERS);
|
||||
|
||||
/* Initialize our shared state struct */
|
||||
MultiXactState = ShmemInitStruct("Shared MultiXact State",
|
||||
|
Reference in New Issue
Block a user