MXS-1929: Start monitors after creation

Monitors created via the REST API that were started and configured
successfully should also be started. This removes the extra step of
starting the monitor after creating it.
This commit is contained in:
Markus Mäkelä 2018-08-22 21:10:19 +03:00
parent a6bef0a80d
commit 065ee50d53
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1949,6 +1949,10 @@ MXS_MONITOR* runtime_create_monitor_from_json(json_t* json)
runtime_destroy_monitor(rval);
rval = NULL;
}
else
{
monitor_start(rval, rval->parameters);
}
}
}