Content-Length: 260908 | pFad | http://github.com/postgrespro/postgres/commit/91651347bae1026afefc648ff939e286878c1cf3

DF Use correct type for pq_mq_parallel_leader_proc_number variable · postgrespro/postgres@9165134 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/91651347bae1026afefc648ff939e286878c1cf3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy