mariadb/plugin/userstat/userstat.cc
Michael Widenius 4aaa38d26e Enusure that my_global.h is included first
- Added sql/mariadb.h file that should be included first by files in sql
  directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables
  that must be done before my_global.h is included)
- Removed a lot of include my_global.h from include files
- Removed include's of some files that my_global.h automatically includes
- Removed duplicated include's of my_sys.h
- Replaced include my_config.h with my_global.h
2017-08-24 01:05:44 +02:00

82 lines
1.5 KiB
C++

#include <my_global.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_STABLE
},
{
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_STABLE
},
{
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_STABLE
},
{
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_STABLE
}
maria_declare_plugin_end;