Skip to content

Commit 4d5836e

Browse files
committed
Enhance comment for POOL_CONNECTION_POOL.info.
1 parent 09d4e59 commit 4d5836e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/include/pool.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* pgpool: a language independent connection pool server for PostgreSQL
55
* written by Tatsuo Ishii
66
*
7-
* Copyright (c) 2003-2023 PgPool Global Development Group
7+
* Copyright (c) 2003-2024 PgPool Global Development Group
88
*
99
* Permission to use, copy, modify, and distribute this software and
1010
* its documentation for any purpose and without fee is hereby
@@ -266,7 +266,12 @@ typedef struct
266266

267267
typedef struct
268268
{
269-
ConnectionInfo *info; /* connection info on shmem */
269+
/*
270+
* info is initialized by pool_init_cp() at the startup of pgpool child
271+
* process. pool_coninfo(child id, pool index, backend id = 0) is used to
272+
* refer to the appropriate pointer on shared memory.
273+
*/
274+
ConnectionInfo *info;
270275
POOL_CONNECTION_POOL_SLOT *slots[MAX_NUM_BACKENDS];
271276
} POOL_CONNECTION_POOL;
272277

0 commit comments

Comments
 (0)