MXS-2449: Fix maxinfo monitor status output
The status use an AND operation when it should do an equality comparison.
This commit is contained in:
@ -743,7 +743,7 @@ std::unique_ptr<ResultSet> monitor_get_list()
|
||||
|
||||
for (MXS_MONITOR* ptr = allMonitors; ptr; ptr = ptr->next)
|
||||
{
|
||||
const char* state = ptr->state & MONITOR_STATE_RUNNING ? "Running" : "Stopped";
|
||||
const char* state = ptr->state == MONITOR_STATE_RUNNING ? "Running" : "Stopped";
|
||||
set->add_row({ptr->name, state});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user