
As the failover status check is done after the pending status has been moved to the current status, the do_failover should set the current status of the server as Master.
As the failover status check is done after the pending status has been moved to the current status, the do_failover should set the current status of the server as Master.