Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2919ca4e
Commit
2919ca4e
authored
Oct 31, 2012
by
Ashish Agarwal
Browse files
Options
Browse Files
Download
Plain Diff
BUG#14485479: Merge into mysql-5.5 branch
parents
5598603a
154860ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
mysql-test/include/have_null_audit_plugin.inc
mysql-test/include/have_null_audit_plugin.inc
+22
-0
mysql-test/include/plugin.defs
mysql-test/include/plugin.defs
+1
-0
sql/sql_plugin.cc
sql/sql_plugin.cc
+3
-2
No files found.
mysql-test/include/have_null_audit_plugin.inc
0 → 100644
View file @
2919ca4e
disable_query_log
;
#
# Check if server has support for loading plugins
#
if
(
`SELECT @@have_dynamic_loading != 'YES'`
)
{
--
skip
Null
audit
plugin
requires
dynamic
loading
}
#
# Check if the variable AUDIT_NULL is set
#
if
(
!
$AUDIT_NULL
)
{
--
skip
Audit_null
plugin
requires
the
environment
variable
\
$AUDIT_NULL
to
be
set
(
normally
done
by
mtr
)
}
#
# Check if --plugin-dir was setup for null_audit db
#
if
(
`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$AUDIT_NULL_OPT/'`
)
{
--
skip
null
audit
plugin
requires
that
--
plugin
-
dir
is
set
to
the
null
audit
plugin
dir
(
either
the
.
opt
file
does
not
contain
\
$AUDIT_NULL_OPT
or
another
plugin
is
in
use
)
}
enable_query_log
;
mysql-test/include/plugin.defs
View file @
2919ca4e
...
...
@@ -40,3 +40,4 @@ ha_blackhole storage/blackhole BLACKHOLE_PLUGIN
ha_federated storage/federated FEDERATED_PLUGIN
mypluglib plugin/fulltext SIMPLE_PARSER
libdaemon_example plugin/daemon_example DAEMONEXAMPLE
adt_null plugin/audit_null AUDIT_NULL
sql/sql_plugin.cc
View file @
2919ca4e
...
...
@@ -1820,6 +1820,7 @@ bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING *dl
{
if
(
plugin_initialize
(
tmp
))
{
mysql_mutex_unlock
(
&
LOCK_plugin
);
my_error
(
ER_CANT_INITIALIZE_UDF
,
MYF
(
0
),
name
->
str
,
"Plugin initialization function failed."
);
goto
deinit
;
...
...
@@ -1831,6 +1832,7 @@ bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING *dl
of the insert into the plugin table, so that it is not replicated in
row based mode.
*/
mysql_mutex_unlock
(
&
LOCK_plugin
);
tmp_disable_binlog
(
thd
);
table
->
use_all_columns
();
restore_record
(
table
,
s
->
default_values
);
...
...
@@ -1843,10 +1845,9 @@ bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING *dl
table
->
file
->
print_error
(
error
,
MYF
(
0
));
goto
deinit
;
}
mysql_mutex_unlock
(
&
LOCK_plugin
);
DBUG_RETURN
(
FALSE
);
deinit:
mysql_mutex_lock
(
&
LOCK_plugin
);
tmp
->
state
=
PLUGIN_IS_DELETED
;
reap_needed
=
true
;
reap_plugins
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment