[pgpool-committers: 6916] pgpool: Fix connection_life_time does not work.
Tatsuo Ishii
ishii at sraoss.co.jp
Tue Aug 11 11:50:05 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
------
V3_7_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=b47a050be64183809f82a458e19eef73becf4475
Modified Files
--------------
src/protocol/pool_connection_pool.c | 6 +-
.../tests/031.connection_life_time/test.sh | 69 ++++++++++++++++++++++
2 files changed, 74 insertions(+), 1 deletion(-)
More information about the pgpool-committers
mailing list