Remove superfluous memset from pgstat_recv_resetslrucounter
Tomas Vondra <tomas.vondra@postgresql.org>
Remove superfluous memset from pgstat_recv_resetslrucounter The extra memset meant pg_stat_reset_slru() always reset all the entries even when reset of a single entry was requested, but the timestamp was left uninitialized. Reported-by: Atsushi Torikoshi Discussion: https://postgr.es/m/CACZ0uYFe16pjZxQYaTn53mspyM7dgMPYL3DJLjjPw69GMCC2Ow%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/pgstat.c | modified | +0 −2 |
Discussion
- pg_stat_reset_slru(name) doesn't seem to work as documented 4 messages · 2020-05-01 → 2020-05-03