Check pending Synced status in Galeramon
The pending status must be used, not the current.
This commit is contained in:
@ -320,7 +320,7 @@ void GaleraMonitor::post_tick()
|
|||||||
while (ptr)
|
while (ptr)
|
||||||
{
|
{
|
||||||
const int repl_bits = (SERVER_SLAVE | SERVER_MASTER | SERVER_MASTER_STICKINESS);
|
const int repl_bits = (SERVER_SLAVE | SERVER_MASTER | SERVER_MASTER_STICKINESS);
|
||||||
if (SERVER_IS_JOINED(ptr->server) && !m_disableMasterRoleSetting)
|
if ((ptr->pending_status & SERVER_JOINED) && !m_disableMasterRoleSetting)
|
||||||
{
|
{
|
||||||
if (ptr != m_master)
|
if (ptr != m_master)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user