mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
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
This commit is contained in:
@ -493,8 +493,8 @@ CheckpointerMain(void)
|
||||
CheckArchiveTimeout();
|
||||
|
||||
/* Report pending statistics to the cumulative stats system */
|
||||
pgstat_send_checkpointer();
|
||||
pgstat_send_wal(true);
|
||||
pgstat_report_checkpointer();
|
||||
pgstat_report_wal(true);
|
||||
|
||||
/*
|
||||
* If any checkpoint flags have been set, redo the loop to handle the
|
||||
@ -571,8 +571,8 @@ HandleCheckpointerInterrupts(void)
|
||||
*/
|
||||
PendingCheckpointerStats.m_requested_checkpoints++;
|
||||
ShutdownXLOG(0, 0);
|
||||
pgstat_send_checkpointer();
|
||||
pgstat_send_wal(true);
|
||||
pgstat_report_checkpointer();
|
||||
pgstat_report_wal(true);
|
||||
|
||||
/* Normal exit from the checkpointer is here */
|
||||
proc_exit(0); /* done */
|
||||
@ -715,7 +715,7 @@ CheckpointWriteDelay(int flags, double progress)
|
||||
CheckArchiveTimeout();
|
||||
|
||||
/* Report interim statistics to the cumulative stats system */
|
||||
pgstat_send_checkpointer();
|
||||
pgstat_report_checkpointer();
|
||||
|
||||
/*
|
||||
* This sleep used to be connected to bgwriter_delay, typically 200ms.
|
||||
|
Reference in New Issue
Block a user