Introduce symbolic names for FeBeWaitSet positions.

Thomas Munro <tmunro@postgresql.org>

Commit: a042ba2ba7bb44f191f6f9398da27f04a958a0db
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-03-01T03:10:16Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/libpq/be-secure.c modified +2 −2
src/backend/libpq/pqcomm.c modified +15 −3
src/backend/utils/init/miscinit.c modified +4 −2
src/include/libpq/libpq.h modified +3 −0

Discussion