summaryrefslogtreecommitdiff
path: root/src/backend/utils/activity/pgstat_wal.c
diff options
context:
space:
mode:
authorMichael Paquier2025-02-26 06:29:51 +0000
committerMichael Paquier2025-02-26 06:37:28 +0000
commitd7cbeaf261da346d8c745870da1d31075ae0313c (patch)
tree7ce92606d4061c3255f9365731000ffc9175a8d2 /src/backend/utils/activity/pgstat_wal.c
parente117cfb2f6c67fe4ba46720bc6917da3dbd48c10 (diff)
Remove pgstat_flush_wal()
All the processes that generate WAL should call pgstat_report_wal() to report all their statistics related to WAL, and this is already what happens in the tree. Keeping pgstat_report_wal() is confusing while the other routine is encouraged. This routine is not required since fc415edf8ca8, where it was lastly used in pgstat_report_stat() before an equivalent callback existed. Author: Bertrand Drouvot <[email protected]> Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/utils/activity/pgstat_wal.c')
-rw-r--r--src/backend/utils/activity/pgstat_wal.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/backend/utils/activity/pgstat_wal.c b/src/backend/utils/activity/pgstat_wal.c
index 4dc41a4a590..7beee2095a8 100644
--- a/src/backend/utils/activity/pgstat_wal.c
+++ b/src/backend/utils/activity/pgstat_wal.c
@@ -51,7 +51,7 @@ pgstat_report_wal(bool force)
nowait = !force;
/* flush wal stats */
- pgstat_flush_wal(nowait);
+ (void) pgstat_wal_flush_cb(nowait);
/* flush IO stats */
pgstat_flush_io(nowait);
@@ -70,15 +70,6 @@ pgstat_fetch_stat_wal(void)
}
/*
- * Simple wrapper of pgstat_wal_flush_cb()
- */
-void
-pgstat_flush_wal(bool nowait)
-{
- (void) pgstat_wal_flush_cb(nowait);
-}
-
-/*
* Calculate how much WAL usage counters have increased by subtracting the
* previous counters from the current ones.
*