Pgpool standby nodes were getting the "require_backend_sync" signal before the
active/master Pgpool had finish the failover. As a results the standby was
getting the wrong backend node statuses. The cause was a simple coding mistake
where failover indication function was passed with the wrong argument.
Problem reported by Bo Peng <pengbo@sraoss.co.jp>
WDFailoverCMDResults wd_failover_start(void)
{
if (pool_config->use_watchdog)
- return wd_send_failover_func_status_command(0);
+ return wd_send_failover_func_status_command(true);
return FAILOVER_RES_PROCEED;
}
WDFailoverCMDResults wd_failover_end(void)
{
if (pool_config->use_watchdog)
- return wd_send_failover_func_status_command(1);
+ return wd_send_failover_func_status_command(false);
return FAILOVER_RES_PROCEED;
}