From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Introduce symbolic names for FeBeWaitSet positions.
Date: Mon, 01 Mar 2021 03:20:40 +0000
Message-ID: <E1lGZ6u-0008LV-KU@gemulon.postgresql.org> (raw)
Introduce symbolic names for FeBeWaitSet positions.
Previously we used 0 and 1 to refer to the socket and latch in far flung
parts of the tree, without any explanation. Also use PGINVALID_SOCKET
rather than -1 in a couple of places that didn't already do that.
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKGJAC4Oqao%3DqforhNey20J8CiG2R%3DoBPqvfR0vOJrFysGw%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a042ba2ba7bb44f191f6f9398da27f04a958a0db
Modified Files
--------------
src/backend/libpq/be-secure.c | 4 ++--
src/backend/libpq/pqcomm.c | 18 +++++++++++++++---
src/backend/utils/init/miscinit.c | 6 ++++--
src/include/libpq/libpq.h | 3 +++
4 files changed, 24 insertions(+), 7 deletions(-)
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: tmunro@postgresql.org
Subject: Re: pgsql: Introduce symbolic names for FeBeWaitSet positions.
In-Reply-To: <E1lGZ6u-0008LV-KU@gemulon.postgresql.org>
References: <E1lGZ6u-0008LV-KU@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