mariadb/plugin/userstat/userstat.cc
Sergei Golubchik 853077ad7e Merge branch '10.0' into bb-10.1-merge
Conflicts:
	.bzrignore
	VERSION
	cmake/plugin.cmake
	debian/dist/Debian/control
	debian/dist/Ubuntu/control
	mysql-test/r/join_outer.result
	mysql-test/r/join_outer_jcl6.result
	mysql-test/r/null.result
	mysql-test/r/old-mode.result
	mysql-test/r/union.result
	mysql-test/t/join_outer.test
	mysql-test/t/null.test
	mysql-test/t/old-mode.test
	mysql-test/t/union.test
	packaging/rpm-oel/mysql.spec.in
	scripts/mysql_config.sh
	sql/ha_ndbcluster.cc
	sql/ha_ndbcluster_binlog.cc
	sql/ha_ndbcluster_cond.cc
	sql/item_cmpfunc.h
	sql/lock.cc
	sql/sql_select.cc
	sql/sql_show.cc
	sql/sql_update.cc
	sql/sql_yacc.yy
	storage/innobase/buf/buf0flu.cc
	storage/innobase/fil/fil0fil.cc
	storage/innobase/include/srv0srv.h
	storage/innobase/lock/lock0lock.cc
	storage/tokudb/CMakeLists.txt
	storage/xtradb/buf/buf0flu.cc
	storage/xtradb/fil/fil0fil.cc
	storage/xtradb/include/srv0srv.h
	storage/xtradb/lock/lock0lock.cc
	support-files/mysql.spec.sh
2014-12-02 22:25:16 +01:00

82 lines
1.5 KiB
C++

#include <my_config.h>
#include <mysql/plugin.h>
#include <mysql_version.h>
#include "table.h"
#include "sql_connect.h"
#include "field.h"
#include "sql_const.h"
#include "sql_acl.h"
bool schema_table_store_record(THD *thd, TABLE *table);
#include "client_stats.cc"
#include "index_stats.cc"
#include "table_stats.cc"
#include "user_stats.cc"
static struct st_mysql_information_schema userstat_info=
{ MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION };
maria_declare_plugin(userstat)
{
MYSQL_INFORMATION_SCHEMA_PLUGIN,
&userstat_info,
"CLIENT_STATISTICS",
"Percona and Sergei Golubchik",
"Client Statistics",
PLUGIN_LICENSE_GPL,
client_stats_init,
0,
0x0200,
NULL,
NULL,
"2.0",
MariaDB_PLUGIN_MATURITY_GAMMA
},
{
MYSQL_INFORMATION_SCHEMA_PLUGIN,
&userstat_info,
"INDEX_STATISTICS",
"Percona and Sergei Golubchik",
"Index Statistics",
PLUGIN_LICENSE_GPL,
index_stats_init,
0,
0x0200,
NULL,
NULL,
"2.0",
MariaDB_PLUGIN_MATURITY_GAMMA
},
{
MYSQL_INFORMATION_SCHEMA_PLUGIN,
&userstat_info,
"TABLE_STATISTICS",
"Percona and Sergei Golubchik",
"Table Statistics",
PLUGIN_LICENSE_GPL,
table_stats_init,
0,
0x0200,
NULL,
NULL,
"2.0",
MariaDB_PLUGIN_MATURITY_GAMMA
},
{
MYSQL_INFORMATION_SCHEMA_PLUGIN,
&userstat_info,
"USER_STATISTICS",
"Percona and Sergei Golubchik",
"User Statistics",
PLUGIN_LICENSE_GPL,
user_stats_init,
0,
0x0200,
NULL,
NULL,
"2.0",
MariaDB_PLUGIN_MATURITY_GAMMA
}
maria_declare_plugin_end;