[pgpool-committers: 6917] pgpool: Fix connection_life_time does not work.
Tatsuo Ishii
ishii at sraoss.co.jp
Tue Aug 11 11:50:10 JST 2020
Fix connection_life_time does not work.
If master node is not 0 (this could happen in the case when primary
node is not 0 in streaming replication mode for example), pgpool
failed to find connection_life_time timer because the timer was set
only in virtual_master_node, which could be changed after session ends
since query context is not there any more.
To fix this, connection_life_time timer is set to all valid nodes.
Regression test is also added.
Discussion: https://www.pgpool.net/pipermail/pgpool-general/2020-August/007242.html
Branch
------
V4_0_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=41809a1a347e58fcdb588e29791f181238589b25
Modified Files
--------------
src/protocol/pool_connection_pool.c | 7 ++-
.../tests/031.connection_life_time/test.sh | 69 ++++++++++++++++++++++
2 files changed, 74 insertions(+), 2 deletions(-)
More information about the pgpool-committers
mailing list