Skip to content

Commit

Permalink
Compile user_variables plugin statically
Browse files Browse the repository at this point in the history
Recompile it for embedded.
Test it for embedded.
Promote it to Gamma
  • Loading branch information
vuvova committed Apr 30, 2017
1 parent 0072d2e commit 54e24fc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion debian/mariadb-server-10.2.install
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ usr/lib/mysql/plugin/semisync_slave.so
usr/lib/mysql/plugin/server_audit.so
usr/lib/mysql/plugin/simple_password_check.so
usr/lib/mysql/plugin/sql_errlog.so
usr/lib/mysql/plugin/user_variables.so
usr/lib/mysql/plugin/wsrep_info.so
usr/share/apport/package-hooks/source_mariadb-10.2.py
usr/share/doc/mariadb-server-10.2/mysqld.sym.gz
Expand Down
3 changes: 2 additions & 1 deletion plugin/user_variables/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
MYSQL_ADD_PLUGIN(user_variables user_variables.cc)
MYSQL_ADD_PLUGIN(user_variables user_variables.cc
DEFAULT RECOMPILE_FOR_EMBEDDED)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PLUGIN_AUTHOR Sergey Vojtovich
PLUGIN_DESCRIPTION User-defined variables
PLUGIN_LICENSE GPL
LOAD_OPTION ON
PLUGIN_MATURITY Alpha
PLUGIN_MATURITY Gamma
SHOW CREATE TABLE INFORMATION_SCHEMA.USER_VARIABLES;
Table Create Table
user_variables CREATE TEMPORARY TABLE `user_variables` (
Expand Down
3 changes: 2 additions & 1 deletion plugin/user_variables/mysql-test/user_variables/suite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ return "No USER_VARIABLES plugin" unless
$ENV{USER_VARIABLES_SO} or
$::mysqld_variables{'user-variables'} eq "ON";

return "Not run for embedded server" if $::opt_embedded_server;
return "Not run for embedded server" if $::opt_embedded_server and
$ENV{USER_VARIABLES_SO};

sub is_default { 1 }

Expand Down
2 changes: 1 addition & 1 deletion plugin/user_variables/user_variables.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ maria_declare_plugin(user_variables)
NULL,
NULL,
"1.0",
MariaDB_PLUGIN_MATURITY_ALPHA
MariaDB_PLUGIN_MATURITY_GAMMA
}
maria_declare_plugin_end;

0 comments on commit 54e24fc

Please sign in to comment.