From 36c1982a19723e45c00cb0b5eea16d2e4c069c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lindstr=C3=B6m?= Date: Wed, 18 Feb 2015 15:23:37 +0200 Subject: MDEV-7604: wsrep plugin lists its plugin_maturity as Unknown Changed wsrep plugin from mysql_plugin to maria_plugin to set up plugin_maturity to Stable. --- mysql-test/suite/wsrep/r/plugin.result | 3 +++ mysql-test/suite/wsrep/t/plugin.test | 7 +++++++ sql/wsrep_hton.cc | 8 ++++---- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 mysql-test/suite/wsrep/r/plugin.result create mode 100644 mysql-test/suite/wsrep/t/plugin.test diff --git a/mysql-test/suite/wsrep/r/plugin.result b/mysql-test/suite/wsrep/r/plugin.result new file mode 100644 index 00000000000..4f52173cb25 --- /dev/null +++ b/mysql-test/suite/wsrep/r/plugin.result @@ -0,0 +1,3 @@ +SELECT plugin_name,plugin_version,plugin_maturity FROM information_schema.plugins where plugin_name like 'wsrep' ORDER BY plugin_maturity,plugin_name; +plugin_name plugin_version plugin_maturity +wsrep 1.0 Stable diff --git a/mysql-test/suite/wsrep/t/plugin.test b/mysql-test/suite/wsrep/t/plugin.test new file mode 100644 index 00000000000..60738440a55 --- /dev/null +++ b/mysql-test/suite/wsrep/t/plugin.test @@ -0,0 +1,7 @@ +--source include/have_wsrep.inc + +# +# MDEV-7604: wsrep plugin lists its status as Unknown +# + +SELECT plugin_name,plugin_version,plugin_maturity FROM information_schema.plugins where plugin_name like 'wsrep' ORDER BY plugin_maturity,plugin_name; \ No newline at end of file diff --git a/sql/wsrep_hton.cc b/sql/wsrep_hton.cc index 36be70249ca..8ef51548e79 100644 --- a/sql/wsrep_hton.cc +++ b/sql/wsrep_hton.cc @@ -561,7 +561,7 @@ struct st_mysql_storage_engine wsrep_storage_engine= { MYSQL_HANDLERTON_INTERFACE_VERSION }; -mysql_declare_plugin(wsrep) +maria_declare_plugin(wsrep) { MYSQL_STORAGE_ENGINE_PLUGIN, &wsrep_storage_engine, @@ -575,7 +575,7 @@ mysql_declare_plugin(wsrep) 0x0100 /* 1.0 */, NULL, /* status variables */ NULL, /* system variables */ - NULL, /* config options */ - 0, /* flags */ + "1.0", /* string version */ + MariaDB_PLUGIN_MATURITY_STABLE /* maturity */ } -mysql_declare_plugin_end; +maria_declare_plugin_end; -- cgit v1.2.1