[pgpool-committers: 8369] pgpool: Fix failover() to deal with the case when no former primary nod
Tatsuo Ishii
ishii at sraoss.co.jp
Sun Feb 6 17:31:52 JST 2022
Fix failover() to deal with the case when no former primary node exists.
Consider a case when no primary node exists when Pgpool-II starts
up. In this case Req_info->primary_node_id is -1. failover() did not
consider this and skipped to call find_primary_node_repeatedly().
Also follow_master_command was not executed if
Req_info->primary_node_id is -1.
This commit fixes the bug above.
Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2022-February/004114.html
Branch
------
V4_1_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=19a20fbfa65804835b2251bb5cd197f7d62a7556
Modified Files
--------------
src/main/pgpool_main.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
More information about the pgpool-committers
mailing list