From ef769573e442fd1600c23a6eaa42915e4914c647 Mon Sep 17 00:00:00 2001 From: Esa Korhonen Date: Thu, 6 Feb 2020 15:48:54 +0200 Subject: [PATCH] MXS-2880 Fix typo in json output "seconds_behing_master" -> "seconds_behind_master" --- server/modules/monitor/mariadbmon/server_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/monitor/mariadbmon/server_utils.cc b/server/modules/monitor/mariadbmon/server_utils.cc index 1829eb3aa..815a019ad 100644 --- a/server/modules/monitor/mariadbmon/server_utils.cc +++ b/server/modules/monitor/mariadbmon/server_utils.cc @@ -74,7 +74,7 @@ json_t* SlaveStatus::to_json() const json_string(slave_io_to_string(slave_io_running).c_str())); json_object_set_new(result, "slave_sql_running", json_string(slave_sql_running ? "Yes" : "No")); json_object_set_new(result, - "seconds_behing_master", + "seconds_behind_master", seconds_behind_master == MXS_RLAG_UNDEFINED ? json_null() : json_integer(seconds_behind_master)); json_object_set_new(result, "master_server_id", json_integer(master_server_id));