Check pending Synced status in Galeramon

The pending status must be used, not the current.
This commit is contained in:
Markus Mäkelä 2018-06-08 13:09:17 +03:00
parent 9f5358eac0
commit dd49d4faea
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -320,7 +320,7 @@ void GaleraMonitor::post_tick()
while (ptr)
{
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)
{