aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2021-03-24 10:37:54 +0900
committerFujii Masao <fujii@postgresql.org>2021-03-24 10:37:54 +0900
commit84007043fc1b1be68dad5d0a78269347c12094b6 (patch)
tree9cbdbce0b7d85994212e615e96d3d238b9af84ac /src/backend
parent7fbcee1b2d5f1012c67942126881bd492e95077e (diff)
downloadpostgresql-84007043fc1b1be68dad5d0a78269347c12094b6.tar.gz
postgresql-84007043fc1b1be68dad5d0a78269347c12094b6.zip
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
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/postmaster/pgstat.c4
-rw-r--r--src/backend/replication/walreceiverfuncs.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index b7af7c2707a..60f45ccc4ea 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -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";
diff --git a/src/backend/replication/walreceiverfuncs.c b/src/backend/replication/walreceiverfuncs.c
index fff6c54c45d..6f0acbfdef4 100644
--- a/src/backend/replication/walreceiverfuncs.c
+++ b/src/backend/replication/walreceiverfuncs.c
@@ -224,7 +224,7 @@ ShutdownWalRcv(void)
ConditionVariablePrepareToSleep(&walrcv->walRcvStoppedCV);
while (WalRcvRunning())
ConditionVariableSleep(&walrcv->walRcvStoppedCV,
- WAIT_EVENT_WALRCV_EXIT);
+ WAIT_EVENT_WAL_RECEIVER_EXIT);
ConditionVariableCancelSleep();
}