Introduce symbolic names for FeBeWaitSet positions.
Thomas Munro <tmunro@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| 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
- Reducing WaitEventSet syscall churn 15 messages · 2020-01-21 → 2021-03-01