mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +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:
@@ -258,7 +258,7 @@ WalWriterMain(void)
|
||||
left_till_hibernate--;
|
||||
|
||||
/* report pending statistics to the cumulative stats system */
|
||||
pgstat_send_wal(false);
|
||||
pgstat_report_wal(false);
|
||||
|
||||
/*
|
||||
* Sleep until we are signaled or WalWriterDelay has elapsed. If we
|
||||
@@ -297,11 +297,11 @@ HandleWalWriterInterrupts(void)
|
||||
/*
|
||||
* Force reporting remaining WAL statistics at process exit.
|
||||
*
|
||||
* Since pgstat_send_wal is invoked with 'force' is false in main loop
|
||||
* Since pgstat_report_wal is invoked with 'force' is false in main loop
|
||||
* to avoid overloading the cumulative stats system, there may exist
|
||||
* unreported stats counters for the WAL writer.
|
||||
*/
|
||||
pgstat_send_wal(true);
|
||||
pgstat_report_wal(true);
|
||||
|
||||
proc_exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user