mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +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:
@ -480,7 +480,7 @@ pgarch_ArchiverCopyLoop(void)
|
||||
* Tell the cumulative stats system about the WAL file that we
|
||||
* successfully archived
|
||||
*/
|
||||
pgstat_send_archiver(xlog, false);
|
||||
pgstat_report_archiver(xlog, false);
|
||||
|
||||
break; /* out of inner retry loop */
|
||||
}
|
||||
@ -490,7 +490,7 @@ pgarch_ArchiverCopyLoop(void)
|
||||
* Tell the cumulative stats system about the WAL file that we
|
||||
* failed to archive
|
||||
*/
|
||||
pgstat_send_archiver(xlog, true);
|
||||
pgstat_report_archiver(xlog, true);
|
||||
|
||||
if (++failures >= NUM_ARCHIVE_RETRIES)
|
||||
{
|
||||
|
Reference in New Issue
Block a user