Cleanup monitor running state
This commit is contained in:
@ -695,7 +695,7 @@ bool MariaDBMonitor::check_sql_files()
|
||||
bool MariaDBMonitor::execute_manual_command(std::function<void(void)> command, json_t** error_out)
|
||||
{
|
||||
bool rval = false;
|
||||
if (state() != MONITOR_STATE_RUNNING)
|
||||
if (!is_running())
|
||||
{
|
||||
PRINT_MXS_JSON_ERROR(error_out, "The monitor is not running, cannot execute manual command.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user