1
0
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:
Andres Freund
2022-04-06 14:08:57 -07:00
parent dbafe127bb
commit cc96373cf3
10 changed files with 23 additions and 23 deletions

View File

@ -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)
{