[pgpool-committers: 8365] 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:21 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
------
V3_7_STABLE

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

Modified Files
--------------
src/main/pgpool_main.c | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)



More information about the pgpool-committers mailing list