pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve commentary in timeout.c.
Date: Thu, 07 Jan 2021 03:09:23 +0000
Message-ID: <E1kxLfv-0005CH-Pq@gemulon.postgresql.org> (raw)

Improve commentary in timeout.c.

On re-reading I realized that I'd missed one race condition in the new
timeout code.  It's safe, but add a comment explaining it.

Discussion: https://postgr.es/m/CA+hUKG+o6pbuHBJSGnud=TadsuXySWA7CCcPgCt2QE9F6_4iHQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9486e7b666fd113f043d5f091fd42bc1ef72acd8

Modified Files
--------------
src/backend/utils/misc/timeout.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)



Message-ID: <E1kxLfv-0005CH-Pq@gemulon.postgresql.org>
Permalink:  ../E1kxLfv-0005CH-Pq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kxLfv-0005CH-Pq@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve commentary in timeout.c.
  In-Reply-To: <E1kxLfv-0005CH-Pq@gemulon.postgresql.org>
  References: <E1kxLfv-0005CH-Pq@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