Skip to content

Commit 8400704

Browse files
committed
Rename wait event WalrcvExit to WalReceiverExit.
Commit de829dd added wait event WalrcvExit. But its name is not consistent with other wait events like WalReceiverMain or WalReceiverWaitStart, etc. So this commit renames WalrcvExit to WalReceiverExit. Author: Fujii Masao Reviewed-by: Thomas Munro Discussion: https://postgr.es/m/cced9995-8fa2-7b22-9d91-3f22a2b8c23c@oss.nttdata.com
1 parent 7fbcee1 commit 8400704

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

doc/src/sgml/monitoring.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,8 +1763,8 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
17631763
replication.</entry>
17641764
</row>
17651765
<row>
1766-
<entry><literal>WalrcvExit</literal></entry>
1767-
<entry>Waiting for the walreceiver to exit.</entry>
1766+
<entry><literal>WalReceiverExit</literal></entry>
1767+
<entry>Waiting for the WAL receiver to exit.</entry>
17681768
</row>
17691769
<row>
17701770
<entry><literal>WalReceiverWaitStart</literal></entry>

src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4121,8 +4121,8 @@ pgstat_get_wait_ipc(WaitEventIPC w)
41214121
case WAIT_EVENT_SYNC_REP:
41224122
event_name = "SyncRep";
41234123
break;
4124-
case WAIT_EVENT_WALRCV_EXIT:
4125-
event_name = "WalrcvExit";
4124+
case WAIT_EVENT_WAL_RECEIVER_EXIT:
4125+
event_name = "WalReceiverExit";
41264126
break;
41274127
case WAIT_EVENT_WAL_RECEIVER_WAIT_START:
41284128
event_name = "WalReceiverWaitStart";

src/backend/replication/walreceiverfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ ShutdownWalRcv(void)
224224
ConditionVariablePrepareToSleep(&walrcv->walRcvStoppedCV);
225225
while (WalRcvRunning())
226226
ConditionVariableSleep(&walrcv->walRcvStoppedCV,
227-
WAIT_EVENT_WALRCV_EXIT);
227+
WAIT_EVENT_WAL_RECEIVER_EXIT);
228228
ConditionVariableCancelSleep();
229229
}
230230

src/include/pgstat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ typedef enum
10081008
WAIT_EVENT_REPLICATION_SLOT_DROP,
10091009
WAIT_EVENT_SAFE_SNAPSHOT,
10101010
WAIT_EVENT_SYNC_REP,
1011-
WAIT_EVENT_WALRCV_EXIT,
1011+
WAIT_EVENT_WAL_RECEIVER_EXIT,
10121012
WAIT_EVENT_WAL_RECEIVER_WAIT_START,
10131013
WAIT_EVENT_XACT_GROUP_UPDATE
10141014
} WaitEventIPC;

0 commit comments

Comments
 (0)