summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-02-26 12:33:16 +0100
committerSergei Golubchik <serg@mariadb.org>2020-03-14 12:38:26 +0100
commit0fe3d6d56371b2b8ae5e92e80270a112d9bf4910 (patch)
tree3fc034c6ccf52ff7af7ad1c843f0000d684d58cf
parent7b082fb099348da664cf9b35f75eab54deba3b29 (diff)
downloadmariadb-git-0fe3d6d56371b2b8ae5e92e80270a112d9bf4910.tar.gz
all status variables above `questions` MUST be ulong
see e.g. `add_to_status()`
-rw-r--r--sql/mysqld.cc6
-rw-r--r--sql/sql_class.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 9a6aa2676d7..4580da89f16 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -8415,9 +8415,9 @@ SHOW_VAR status_vars[]= {
{"Key", (char*) &show_default_keycache, SHOW_FUNC},
{"Last_query_cost", (char*) offsetof(STATUS_VAR, last_query_cost), SHOW_DOUBLE_STATUS},
{"Max_statement_time_exceeded", (char*) offsetof(STATUS_VAR, max_statement_time_exceeded), SHOW_LONG_STATUS},
- {"Master_gtid_wait_count", (char*) offsetof(STATUS_VAR, master_gtid_wait_count), SHOW_LONGLONG_STATUS},
- {"Master_gtid_wait_timeouts", (char*) offsetof(STATUS_VAR, master_gtid_wait_timeouts), SHOW_LONGLONG_STATUS},
- {"Master_gtid_wait_time", (char*) offsetof(STATUS_VAR, master_gtid_wait_time), SHOW_LONGLONG_STATUS},
+ {"Master_gtid_wait_count", (char*) offsetof(STATUS_VAR, master_gtid_wait_count), SHOW_LONG_STATUS},
+ {"Master_gtid_wait_timeouts", (char*) offsetof(STATUS_VAR, master_gtid_wait_timeouts), SHOW_LONG_STATUS},
+ {"Master_gtid_wait_time", (char*) offsetof(STATUS_VAR, master_gtid_wait_time), SHOW_LONG_STATUS},
{"Max_used_connections", (char*) &max_used_connections, SHOW_LONG},
{"Memory_used", (char*) &show_memory_used, SHOW_SIMPLE_FUNC},
{"Not_flushed_delayed_rows", (char*) &delayed_rows_in_use, SHOW_LONG_NOFLUSH},
diff --git a/sql/sql_class.h b/sql/sql_class.h
index edd02c9c932..9071a2db516 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -781,9 +781,9 @@ typedef struct system_status_var
ulong feature_xml; /* +1 when XPATH is used */
/* From MASTER_GTID_WAIT usage */
- ulonglong master_gtid_wait_timeouts; /* Number of timeouts */
- ulonglong master_gtid_wait_time; /* Time in microseconds */
- ulonglong master_gtid_wait_count;
+ ulong master_gtid_wait_timeouts; /* Number of timeouts */
+ ulong master_gtid_wait_time; /* Time in microseconds */
+ ulong master_gtid_wait_count;
ulong empty_queries;
ulong access_denied_errors;