aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/multixact.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-11-12 14:59:09 -0500
committerRobert Haas <rhaas@postgresql.org>2015-11-12 14:59:09 -0500
commitfe702a7b3f9f2bc5bf6d173166d7d55226af82c8 (patch)
treed2e1c94a293e39cef4615f20b91dfce21a1b0245 /src/backend/access/transam/multixact.c
parentc405918858c09d4264ffc5a3c73d57dc3efb0213 (diff)
downloadpostgresql-fe702a7b3f9f2bc5bf6d173166d7d55226af82c8.tar.gz
postgresql-fe702a7b3f9f2bc5bf6d173166d7d55226af82c8.zip
Move each SLRU's lwlocks to a separate tranche.
This makes it significantly easier to identify these lwlocks in LWLOCK_STATS or Trace_lwlocks output. It's also arguably better from a modularity standpoint, since lwlock.c no longer needs to know anything about the LWLock needs of the higher-level SLRU facility. Ildus Kurbangaliev, reviewd by Álvaro Herrera and by me.
Diffstat (limited to 'src/backend/access/transam/multixact.c')
-rw-r--r--src/backend/access/transam/multixact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c
index 7d97085a1a6..b66a2b60c8b 100644
--- a/src/backend/access/transam/multixact.c
+++ b/src/backend/access/transam/multixact.c
@@ -1838,10 +1838,10 @@ MultiXactShmemInit(void)
MultiXactMemberCtl->PagePrecedes = MultiXactMemberPagePrecedes;
SimpleLruInit(MultiXactOffsetCtl,
- "MultiXactOffset Ctl", NUM_MXACTOFFSET_BUFFERS, 0,
+ "multixact_offset", NUM_MXACTOFFSET_BUFFERS, 0,
MultiXactOffsetControlLock, "pg_multixact/offsets");
SimpleLruInit(MultiXactMemberCtl,
- "MultiXactMember Ctl", NUM_MXACTMEMBER_BUFFERS, 0,
+ "multixact_member", NUM_MXACTMEMBER_BUFFERS, 0,
MultiXactMemberControlLock, "pg_multixact/members");
/* Initialize our shared state struct */