Skip to content

Commit 9165134

Browse files
committed
Use correct type for pq_mq_parallel_leader_proc_number variable
It's a ProcNumber, not a process id. Both are integers, so it's harmless, but clearly wrong. It's been wrong since forever, the mistake has survived through a couple of refactorings already. Spotted-by: Thomas Munro Discussion: https://www.postgresql.org/message-id/CA+hUKGKPTLSGMyE4Brin-osY8omPLNXmVWDMfrRABLp=6QrR_Q@mail.gmail.com
1 parent 86db52a commit 9165134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/libpq/pqmq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static shm_mq_handle *pq_mq_handle;
2727
static bool pq_mq_busy = false;
2828
static pid_t pq_mq_parallel_leader_pid = 0;
29-
static pid_t pq_mq_parallel_leader_proc_number = INVALID_PROC_NUMBER;
29+
static ProcNumber pq_mq_parallel_leader_proc_number = INVALID_PROC_NUMBER;
3030

3131
static void pq_cleanup_redirect_to_shm_mq(dsm_segment *seg, Datum arg);
3232
static void mq_comm_reset(void);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy