Fix pool_get_node_info() so that it deals with node_number == -1 case. This could happen get_next_master_node() returns -1 because there's no master node available (all nodes down case). Also tweak trigger_failover_command() to deal with pool_get_node_info() returns NULL case. Per report from Wouter D'Haeseleer. Subject: [Pgpool-general] PGpool crashes when all DB servers go down To: "pgpool-general@pgfoundry.org" <pgpool-general@pgfoundry.org> Date: Mon, 07 Feb 2011 09:35:50 +0100
Fix pool_get_node_info() so that it deals with node_number == -1 case.
This could happen get_next_master_node() returns -1 because
there's no master node available (all nodes down case).
Also tweak trigger_failover_command() to deal with pool_get_node_info()
returns NULL case.
Per report from Wouter D'Haeseleer.
Subject: [Pgpool-general] PGpool crashes when all DB servers go down
To: "6f08a041601b8a3a8355191e490b020abb36ca2a@pgfoundry.org" <6f08a041601b8a3a8355191e490b020abb36ca2a@pgfoundry.org>
Date: Mon, 07 Feb 2011 09:35:50 +0100

treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres