Remove redundant call to pgstat_report_wal()
authorAndres Freund <andres@anarazel.de>
Tue, 23 Aug 2022 03:25:42 +0000 (20:25 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 23 Aug 2022 03:25:42 +0000 (20:25 -0700)
commit1bdd54e662d58ed49448255a004b668b56bae100
treed6d63dfe1fa5ecb257ba354d3640ff616eb3efbb
parent0c679464a837079acc75ff1d45eaa83f79e05690
Remove redundant call to pgstat_report_wal()

pgstat_report_stat() will be called before shutdown so an explicit call to
pgstat_report_wal() just before shutdown is redundant.

This likely was not redundant before 5891c7a8ed8, but now it clearly is.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/CAAKRu_aaq33UnG4TXq3S-OSXGWj1QGf0sU%2BECH4tNwGFNERkZA%40mail.gmail.com
src/backend/postmaster/walwriter.c