mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Rename wait event WalrcvExit to WalReceiverExit.
Commit de829ddf23
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
This commit is contained in:
parent
7fbcee1b2d
commit
84007043fc
@ -1763,8 +1763,8 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
|
||||
replication.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>WalrcvExit</literal></entry>
|
||||
<entry>Waiting for the walreceiver to exit.</entry>
|
||||
<entry><literal>WalReceiverExit</literal></entry>
|
||||
<entry>Waiting for the WAL receiver to exit.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>WalReceiverWaitStart</literal></entry>
|
||||
|
@ -4121,8 +4121,8 @@ pgstat_get_wait_ipc(WaitEventIPC w)
|
||||
case WAIT_EVENT_SYNC_REP:
|
||||
event_name = "SyncRep";
|
||||
break;
|
||||
case WAIT_EVENT_WALRCV_EXIT:
|
||||
event_name = "WalrcvExit";
|
||||
case WAIT_EVENT_WAL_RECEIVER_EXIT:
|
||||
event_name = "WalReceiverExit";
|
||||
break;
|
||||
case WAIT_EVENT_WAL_RECEIVER_WAIT_START:
|
||||
event_name = "WalReceiverWaitStart";
|
||||
|
@ -224,7 +224,7 @@ ShutdownWalRcv(void)
|
||||
ConditionVariablePrepareToSleep(&walrcv->walRcvStoppedCV);
|
||||
while (WalRcvRunning())
|
||||
ConditionVariableSleep(&walrcv->walRcvStoppedCV,
|
||||
WAIT_EVENT_WALRCV_EXIT);
|
||||
WAIT_EVENT_WAL_RECEIVER_EXIT);
|
||||
ConditionVariableCancelSleep();
|
||||
}
|
||||
|
||||
|
@ -1008,7 +1008,7 @@ typedef enum
|
||||
WAIT_EVENT_REPLICATION_SLOT_DROP,
|
||||
WAIT_EVENT_SAFE_SNAPSHOT,
|
||||
WAIT_EVENT_SYNC_REP,
|
||||
WAIT_EVENT_WALRCV_EXIT,
|
||||
WAIT_EVENT_WAL_RECEIVER_EXIT,
|
||||
WAIT_EVENT_WAL_RECEIVER_WAIT_START,
|
||||
WAIT_EVENT_XACT_GROUP_UPDATE
|
||||
} WaitEventIPC;
|
||||
|
Loading…
Reference in New Issue
Block a user