From 065ee50d536c7da6ebe5393e22682357bd10889b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 22 Aug 2018 21:10:19 +0300 Subject: [PATCH] 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. --- server/core/config_runtime.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/core/config_runtime.cc b/server/core/config_runtime.cc index 84f564d65..e15f56ee2 100644 --- a/server/core/config_runtime.cc +++ b/server/core/config_runtime.cc @@ -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); + } } }