Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit63461a6

Browse files
committed
Make builtin lwlock tranche names consistent.
Previously, we had a mix of styles.Amit Kapila
1 parentcaefc11 commit63461a6

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
inti;
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)

[8]ページ先頭

©2009-2025 Movatter.jp