pgpool2.git / summary / log / commit / refs

commit    0116131b3897900c4e43c3c41afe5f7cc4abe985
Author:   Muhammad Usama <m.usama@gmail.com>
Date:     Thu Jun 14 08:59:53 2018 +0000

    Fix for wrong backend roles on standby after the failover
    
    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>


src/watchdog/wd_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/watchdog/wd_commands.c b/src/watchdog/wd_commands.c index 4b7ab6a5b..2d0bee7c9 100644 --- a/src/watchdog/wd_commands.c +++ b/src/watchdog/wd_commands.c @@ -893,14 +893,14 @@ open_wd_command_sock(bool throw_error) 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; } [parent: 83906d1d5024]