[pgpool-committers: 6918] pgpool: Fix connection_life_time does not work.
Tatsuo Ishii
ishii at sraoss.co.jp
Tue Aug 11 11:50:15 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_1_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=96fa3c92f96dd831202937b02b13c5d9a730e1d9
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