pgsql: Improve commentary in timeout.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve commentary in timeout.c.
Date: 2021-01-07 03:09:23
Message-ID: E1kxLfv-0005CH-Pq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-01-07 11:52:47 pgsql: doc: Remove reference to recovery params for divergence lookup i
Previous Message Michael Paquier 2021-01-07 01:27:49 pgsql: Fix allocation logic of cryptohash context data with OpenSSL