[pgpool-committers: 8371] 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:58 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_2_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=eca92c217e8026626811b042ac9d6ebcf63fbdac

Modified Files
--------------
src/main/pgpool_main.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list