Remove duplicate monitor state definitions

The state is still stored in two different variables. Also, removed the
ALLOC and FREED states.
This commit is contained in:
Esa Korhonen
2018-08-14 18:40:08 +03:00
parent 876cf7c86f
commit fe5df6d379
4 changed files with 21 additions and 53 deletions

View File

@ -1014,7 +1014,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() != MXS_MONITOR_RUNNING)
if (state() != MONITOR_STATE_RUNNING)
{
PRINT_MXS_JSON_ERROR(error_out, "The monitor is not running, cannot execute manual command.");
}