aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/activity/pgstat_wal.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-04-06 14:08:57 -0700
committerAndres Freund <andres@anarazel.de>2022-04-06 14:08:57 -0700
commitcc96373cf39bbfb386a40a47b7f0ea8f051f1838 (patch)
treeb095cde2b33b82c2e46c3a6d479152005d731515 /src/backend/utils/activity/pgstat_wal.c
parentdbafe127bb215f512164669b49f99fcb7ed9d266 (diff)
downloadpostgresql-cc96373cf39bbfb386a40a47b7f0ea8f051f1838.tar.gz
postgresql-cc96373cf39bbfb386a40a47b7f0ea8f051f1838.zip
pgstat: rename some pgstat_send_* functions to pgstat_report_*.
Only the pgstat_send_* functions that are called from outside pgstat*.c are renamed (the rest will go away). This is done separately from the - quite large - shared memory statistics patch to make review easier. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20220404041516.cctrvpadhuriawlq@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/activity/pgstat_wal.c')
-rw-r--r--src/backend/utils/activity/pgstat_wal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/activity/pgstat_wal.c b/src/backend/utils/activity/pgstat_wal.c
index ad999887630..8680809deef 100644
--- a/src/backend/utils/activity/pgstat_wal.c
+++ b/src/backend/utils/activity/pgstat_wal.c
@@ -31,8 +31,8 @@ PgStat_MsgWal WalStats;
/*
* WAL usage counters saved from pgWALUsage at the previous call to
- * pgstat_send_wal(). This is used to calculate how much WAL usage
- * happens between pgstat_send_wal() calls, by subtracting
+ * pgstat_report_wal(). This is used to calculate how much WAL usage
+ * happens between pgstat_report_wal() calls, by subtracting
* the previous counters from the current ones.
*/
static WalUsage prevWalUsage;
@@ -45,7 +45,7 @@ static WalUsage prevWalUsage;
* passed since last one was sent to reach PGSTAT_STAT_INTERVAL.
*/
void
-pgstat_send_wal(bool force)
+pgstat_report_wal(bool force)
{
static TimestampTz sendTime = 0;
@@ -133,7 +133,7 @@ void
pgstat_wal_initialize(void)
{
/*
- * Initialize prevWalUsage with pgWalUsage so that pgstat_send_wal() can
+ * Initialize prevWalUsage with pgWalUsage so that pgstat_report_wal() can
* calculate how much pgWalUsage counters are increased by subtracting
* prevWalUsage from pgWalUsage.
*/