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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b27d93f3
Commit
b27d93f3
authored
Nov 28, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by default disable pbxt too
parent
07209ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
26 deletions
+38
-26
sql/sql_plugin.cc
sql/sql_plugin.cc
+38
-26
No files found.
sql/sql_plugin.cc
View file @
b27d93f3
...
@@ -149,6 +149,35 @@ static int cur_plugin_info_interface_version[MYSQL_MAX_PLUGIN_TYPE_NUM]=
...
@@ -149,6 +149,35 @@ static int cur_plugin_info_interface_version[MYSQL_MAX_PLUGIN_TYPE_NUM]=
MYSQL_AUTHENTICATION_INTERFACE_VERSION
MYSQL_AUTHENTICATION_INTERFACE_VERSION
};
};
static
struct
{
const
char
*
plugin_name
;
enum
enum_plugin_load_option
override
;
}
override_plugin_load_policy
[]
=
{
/*
If the performance schema is compiled in,
treat the storage engine plugin as 'mandatory',
to suppress any plugin-level options such as '--performance-schema'.
This is specific to the performance schema, and is done on purpose:
the server-level option '--performance-schema' controls the overall
performance schema initialization, which consists of much more that
the underlying storage engine initialization.
See mysqld.cc, set_vars.cc.
Suppressing ways to interfere directly with the storage engine alone
prevents awkward situations where:
- the user wants the performance schema functionality, by using
'--enable-performance-schema' (the server option),
- yet disable explicitly a component needed for the functionality
to work, by using '--skip-performance-schema' (the plugin)
*/
{
"performance_schema"
,
PLUGIN_FORCE
},
/* we disable few other plugins by default */
{
"ndbcluster"
,
PLUGIN_OFF
},
{
"feedback"
,
PLUGIN_OFF
},
{
"pbxt"
,
PLUGIN_OFF
}
};
/* support for Services */
/* support for Services */
#include "sql_plugin_services.h"
#include "sql_plugin_services.h"
...
@@ -1487,24 +1516,15 @@ int plugin_init(int *argc, char **argv, int flags)
...
@@ -1487,24 +1516,15 @@ int plugin_init(int *argc, char **argv, int flags)
tmp
.
state
=
0
;
tmp
.
state
=
0
;
tmp
.
load_option
=
mandatory
?
PLUGIN_FORCE
:
PLUGIN_ON
;
tmp
.
load_option
=
mandatory
?
PLUGIN_FORCE
:
PLUGIN_ON
;
/*
for
(
i
=
0
;
i
<
array_elements
(
override_plugin_load_policy
);
i
++
)
If the performance schema is compiled in,
{
treat the storage engine plugin as 'mandatory',
if
(
!
my_strcasecmp
(
&
my_charset_latin1
,
plugin
->
name
,
to suppress any plugin-level options such as '--performance-schema'.
override_plugin_load_policy
[
i
].
plugin_name
))
This is specific to the performance schema, and is done on purpose:
{
the server-level option '--performance-schema' controls the overall
tmp
.
load_option
=
override_plugin_load_policy
[
i
].
override
;
performance schema initialization, which consists of much more that
break
;
the underlying storage engine initialization.
}
See mysqld.cc, set_vars.cc.
}
Suppressing ways to interfere directly with the storage engine alone
prevents awkward situations where:
- the user wants the performance schema functionality, by using
'--enable-performance-schema' (the server option),
- yet disable explicitly a component needed for the functionality
to work, by using '--skip-performance-schema' (the plugin)
*/
if
(
!
my_strcasecmp
(
&
my_charset_latin1
,
plugin
->
name
,
"PERFORMANCE_SCHEMA"
))
tmp
.
load_option
=
PLUGIN_FORCE
;
free_root
(
&
tmp_root
,
MYF
(
MY_MARK_BLOCKS_FREE
));
free_root
(
&
tmp_root
,
MYF
(
MY_MARK_BLOCKS_FREE
));
if
(
test_plugin_options
(
&
tmp_root
,
&
tmp
,
argc
,
argv
))
if
(
test_plugin_options
(
&
tmp_root
,
&
tmp
,
argc
,
argv
))
...
@@ -3618,14 +3638,6 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
...
@@ -3618,14 +3638,6 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
DBUG_ENTER
(
"test_plugin_options"
);
DBUG_ENTER
(
"test_plugin_options"
);
DBUG_ASSERT
(
tmp
->
plugin
&&
tmp
->
name
.
str
);
DBUG_ASSERT
(
tmp
->
plugin
&&
tmp
->
name
.
str
);
/*
The 'ndbcluster' storage engines is always disabled by default.
*/
if
(
!
my_strcasecmp
(
&
my_charset_latin1
,
tmp
->
name
.
str
,
"ndbcluster"
))
plugin_load_option
=
PLUGIN_OFF
;
if
(
!
my_strcasecmp
(
&
my_charset_latin1
,
tmp
->
name
.
str
,
"feedback"
))
plugin_load_option
=
PLUGIN_OFF
;
for
(
opt
=
tmp
->
plugin
->
system_vars
;
opt
&&
*
opt
;
opt
++
)
for
(
opt
=
tmp
->
plugin
->
system_vars
;
opt
&&
*
opt
;
opt
++
)
count
+=
2
;
/* --{plugin}-{optname} and --plugin-{plugin}-{optname} */
count
+=
2
;
/* --{plugin}-{optname} and --plugin-{plugin}-{optname} */
...
...
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