pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove superfluous memset from pgstat_recv_resetslrucounter
Date: Sat, 02 May 2020 13:34:55 +0000
Message-ID: <E1jUsIB-0003CA-Ow@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d5d09692ea6b96944d24c44db1451f085b64ba09

Modified Files
--------------
src/backend/postmaster/pgstat.c | 2 --
1 file changed, 2 deletions(-)



Message-ID: <E1jUsIB-0003CA-Ow@gemulon.postgresql.org>
Permalink:  ../E1jUsIB-0003CA-Ow@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jUsIB-0003CA-Ow@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Remove superfluous memset from pgstat_recv_resetslrucounter
  In-Reply-To: <E1jUsIB-0003CA-Ow@gemulon.postgresql.org>
  References: <E1jUsIB-0003CA-Ow@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox