summaryrefslogtreecommitdiff
path: root/plugin/userstat/client_stats.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-09-15 13:25:53 +0200
committerSergei Golubchik <serg@mariadb.org>2014-10-11 18:53:05 +0200
commit57dd1f6f3fcbc7a46e1b3e71257987315f7aa687 (patch)
treebb6300af2191c502470934a424d08b45a245c96c /plugin/userstat/client_stats.cc
parent43450fcc4732ae736c6aad020ef1589ece2b992e (diff)
downloadmariadb-git-57dd1f6f3fcbc7a46e1b3e71257987315f7aa687.tar.gz
MDEV-6108 update userstat feature from percona server
TOTAL_SSL_CONNECTIONS columns in CLIENT_STATISTICS and USER_STATISTICS
Diffstat (limited to 'plugin/userstat/client_stats.cc')
-rw-r--r--plugin/userstat/client_stats.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/userstat/client_stats.cc b/plugin/userstat/client_stats.cc
index dd79f350c5c..a1835384ad1 100644
--- a/plugin/userstat/client_stats.cc
+++ b/plugin/userstat/client_stats.cc
@@ -23,6 +23,7 @@ static ST_FIELD_INFO client_stats_fields[]=
{"LOST_CONNECTIONS", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONGLONG, 0, 0, "Lost_connections", 0},
{"ACCESS_DENIED", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONGLONG, 0, 0, "Access_denied", 0},
{"EMPTY_QUERIES", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONGLONG, 0, 0, "Empty_queries", 0},
+ {"TOTAL_SSL_CONNECTIONS", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONGLONG, 0, MY_I_S_UNSIGNED, "Total_ssl_connections", 0},
{"MAX_STATEMENT_TIME_EXCEEDED", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONGLONG, 0, 0, "Max_statement_time_exceeded",SKIP_OPEN_TABLE},
{0, 0, MYSQL_TYPE_STRING, 0, 0, 0, 0}
};
@@ -59,6 +60,7 @@ static int send_user_stats(THD* thd, HASH *all_user_stats, TABLE *table)
table->field[j++]->store((longlong)user_stats->lost_connections, TRUE);
table->field[j++]->store((longlong)user_stats->access_denied_errors, TRUE);
table->field[j++]->store((longlong)user_stats->empty_queries, TRUE);
+ table->field[j++]->store((longlong)user_stats->total_ssl_connections, TRUE);
table->field[j++]->store((longlong)user_stats->max_statement_time_exceeded, TRUE);
if (schema_table_store_record(thd, table))
{