Remove superfluous memset from pgstat_recv_resetslrucounter

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: d5d09692ea6b96944d24c44db1451f085b64ba09
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2020-05-02T13:30:10Z
Releases: 13.0
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

PathChange+/−
src/backend/postmaster/pgstat.c modified +0 −2

Discussion