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
bf37b9fc
Commit
bf37b9fc
authored
Jun 10, 2019
by
Anel Husakovic
Committed by
Robert Bindar
Jul 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19636 Usage message for plugin activation - add FORCE_PLUS_PERMANENT
parent
b1054277
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+4
-1
mysql-test/r/mysqld--help.result
mysql-test/r/mysqld--help.result
+3
-1
sql/sql_plugin.cc
sql/sql_plugin.cc
+5
-4
No files found.
mysql-test/mysql-test-run.pl
View file @
bf37b9fc
...
...
@@ -1880,7 +1880,10 @@ sub collect_mysqld_features {
if
(
/Copyright/
..
/^-{30,}/
)
{
# here we want to detect all not mandatory plugins
# they are listed in the --help output as
# --archive[=name] Enable or disable ARCHIVE plugin. Possible values are ON, OFF, FORCE (don't start if the plugin fails to load).
# --archive[=name]
# Enable or disable ARCHIVE plugin. Possible values are ON, OFF,
# FORCE (don't start if the plugin fails to load),
# FORCE_PLUS_PERMANENT (like FORCE, but the plugin can not be uninstalled).
push
@optional_plugins
,
$1
if
/^ --([-a-z0-9]+)\[=name\] +Enable or disable \w+ plugin. One of: ON, OFF, FORCE/
;
next
;
...
...
mysql-test/r/mysqld--help.result
View file @
bf37b9fc
...
...
@@ -115,7 +115,9 @@ The following specify which files/extra groups are read (specified before remain
that this is a limit per thread!
--changed-page-bitmaps[=name]
Enable or disable CHANGED_PAGE_BITMAPS plugin. One of:
ON, OFF, FORCE (don't start if the plugin fails to load).
ON, OFF, FORCE (don't start if the plugin fails to load),
FORCE_PLUS_PERMANENT (like FORCE, but the plugin can not
be uninstalled).
--character-set-client-handshake
Don't ignore client side character set value sent during
handshake.
...
...
sql/sql_plugin.cc
View file @
bf37b9fc
...
...
@@ -77,7 +77,7 @@ uint plugin_maturity_map[]=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
};
/*
When you ad a new plugin type, add both a string and make sure that the
When you ad
d
a new plugin type, add both a string and make sure that the
init and deinit array are correctly updated.
*/
const
LEX_STRING
plugin_type_names
[
MYSQL_MAX_PLUGIN_TYPE_NUM
]
=
...
...
@@ -3643,7 +3643,7 @@ static int construct_options(MEM_ROOT *mem_root, struct st_plugin_int *tmp,
const
LEX_STRING
plugin_dash
=
{
C_STRING_WITH_LEN
(
"plugin-"
)
};
uint
plugin_name_len
=
strlen
(
plugin_name
);
uint
optnamelen
;
const
int
max_comment_len
=
180
;
const
int
max_comment_len
=
255
;
char
*
comment
=
(
char
*
)
alloc_root
(
mem_root
,
max_comment_len
+
1
);
char
*
optname
;
...
...
@@ -3677,8 +3677,9 @@ static int construct_options(MEM_ROOT *mem_root, struct st_plugin_int *tmp,
options
[
0
].
typelib
=
options
[
1
].
typelib
=
&
global_plugin_typelib
;
strxnmov
(
comment
,
max_comment_len
,
"Enable or disable "
,
plugin_name
,
" plugin. One of: ON, OFF, FORCE (don't start "
"if the plugin fails to load)."
,
NullS
);
" plugin. One of: ON, OFF, FORCE (don't start if the plugin"
" fails to load), FORCE_PLUS_PERMANENT (like FORCE, but the"
" plugin can not be uninstalled)."
,
NullS
);
options
[
0
].
comment
=
comment
;
/*
Allocate temporary space for the value of the tristate.
...
...
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