MXS-2339 A running Clustrix node is regarded as master
In this context master should be interpreted as "can be read and written to". Marking them as master requires less changes in RWS to make it usable with a Clustrix cluster.
This commit is contained in:
parent
ab96606269
commit
84bf241dd1
@ -581,16 +581,16 @@ void ClustrixMonitor::update_server_statuses()
|
||||
|
||||
if (info.is_running())
|
||||
{
|
||||
ms->set_pending_status(SERVER_RUNNING);
|
||||
ms->set_pending_status(SERVER_MASTER | SERVER_RUNNING);
|
||||
}
|
||||
else
|
||||
{
|
||||
ms->clear_pending_status(SERVER_RUNNING);
|
||||
ms->clear_pending_status(SERVER_MASTER | SERVER_RUNNING);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ms->clear_pending_status(SERVER_RUNNING);
|
||||
ms->clear_pending_status(SERVER_MASTER | SERVER_RUNNING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public:
|
||||
{
|
||||
m_nRunning = m_health_check_threshold;
|
||||
|
||||
m_pServer->set_status(SERVER_RUNNING);
|
||||
m_pServer->set_status(SERVER_MASTER | SERVER_RUNNING);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -142,7 +142,7 @@ public:
|
||||
|
||||
if (m_nRunning == 0)
|
||||
{
|
||||
m_pServer->clear_status(SERVER_RUNNING);
|
||||
m_pServer->clear_status(SERVER_MASTER | SERVER_RUNNING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user