diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-02-02 06:42:14 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-02-02 06:45:55 -0500 |
commit | 7191ce8bea0cb110a28faef178efa92bf456e030 (patch) | |
tree | 04014e9bfc2ca0dfdb09dec11cd94a2cc84afa81 /src/backend/access/transam/multixact.c | |
parent | 1d0c3b3f8a98b0ed9515ff0a3868266c3bfb5d38 (diff) | |
download | postgresql-7191ce8bea0cb110a28faef178efa92bf456e030.tar.gz postgresql-7191ce8bea0cb110a28faef178efa92bf456e030.zip |
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
Diffstat (limited to 'src/backend/access/transam/multixact.c')
-rw-r--r-- | src/backend/access/transam/multixact.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index 3334e0cdb62..a677af00496 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -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", |