Skip to content

Commit 63461a6

Browse files
committed
Make builtin lwlock tranche names consistent.
Previously, we had a mix of styles. Amit Kapila
1 parent caefc11 commit 63461a6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4675,7 +4675,7 @@ XLOGShmemInit(void)
46754675
(WALInsertLockPadded *) allocptr;
46764676
allocptr += sizeof(WALInsertLockPadded) * NUM_XLOGINSERT_LOCKS;
46774677

4678-
XLogCtl->Insert.WALInsertLockTranche.name = "WALInsertLocks";
4678+
XLogCtl->Insert.WALInsertLockTranche.name = "wal_insert";
46794679
XLogCtl->Insert.WALInsertLockTranche.array_base = WALInsertLocks;
46804680
XLogCtl->Insert.WALInsertLockTranche.array_stride = sizeof(WALInsertLockPadded);
46814681

src/backend/replication/logical/origin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ ReplicationOriginShmemInit(void)
474474
int i;
475475

476476
replication_states_ctl->tranche_id = LWTRANCHE_REPLICATION_ORIGIN;
477-
replication_states_ctl->tranche.name = "ReplicationOrigins";
477+
replication_states_ctl->tranche.name = "replication_origin";
478478
replication_states_ctl->tranche.array_base =
479479
&replication_states[0].lock;
480480
replication_states_ctl->tranche.array_stride =

src/backend/replication/slot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ReplicationSlotsShmemInit(void)
138138
ShmemInitStruct("ReplicationSlot Ctl", ReplicationSlotsShmemSize(),
139139
&found);
140140

141-
ReplSlotIOLWLockTranche.name = "Replication Slot IO Locks";
141+
ReplSlotIOLWLockTranche.name = "replication_slot_io";
142142
ReplSlotIOLWLockTranche.array_base =
143143
((char *) ReplicationSlotCtl) + offsetof(ReplicationSlotCtlData, replication_slots) +offsetof(ReplicationSlot, io_in_progress_lock);
144144
ReplSlotIOLWLockTranche.array_stride = sizeof(ReplicationSlot);

src/backend/storage/buffer/buf_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ InitBufferPool(void)
9090
+ PG_CACHE_LINE_SIZE,
9191
&foundIOLocks));
9292

93-
BufferIOLWLockTranche.name = "Buffer IO Locks";
93+
BufferIOLWLockTranche.name = "buffer_io";
9494
BufferIOLWLockTranche.array_base = BufferIOLWLockArray;
9595
BufferIOLWLockTranche.array_stride = sizeof(LWLockMinimallyPadded);
9696
LWLockRegisterTranche(LWTRANCHE_BUFFER_IO_IN_PROGRESS,
9797
&BufferIOLWLockTranche);
9898

99-
BufferContentLWLockTranche.name = "Buffer Content Locks";
99+
BufferContentLWLockTranche.name = "buffer_content";
100100
BufferContentLWLockTranche.array_base =
101101
((char *) BufferDescriptors) + offsetof(BufferDesc, content_lock);
102102
BufferContentLWLockTranche.array_stride = sizeof(BufferDescPadded);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy