mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Improved the detection of MySQL Slave status
SVN:trunk[1023]
This commit is contained in:
@@ -562,19 +562,21 @@ class CMDBSource
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($aRow['Slave_IO_Running'] != 'Yes')
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!isset($aRow['Slave_SQL_Running']))
|
if (!isset($aRow['Slave_SQL_Running']))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($aRow['Slave_SQL_Running'] != 'Yes')
|
|
||||||
|
// If at least one slave thread is running, then we consider that the slave is enabled
|
||||||
|
if ($aRow['Slave_IO_Running'] == 'Yes')
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
if ($aRow['Slave_SQL_Running'] == 'Yes')
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user