Skip to content

Commit bf37b9f

Browse files
an3lrobertbindar
authored andcommitted
MDEV-19636 Usage message for plugin activation - add FORCE_PLUS_PERMANENT
1 parent b105427 commit bf37b9f

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

mysql-test/mysql-test-run.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,10 @@ sub collect_mysqld_features {
18801880
if (/Copyright/ .. /^-{30,}/) {
18811881
# here we want to detect all not mandatory plugins
18821882
# they are listed in the --help output as
1883-
# --archive[=name] Enable or disable ARCHIVE plugin. Possible values are ON, OFF, FORCE (don't start if the plugin fails to load).
1883+
# --archive[=name]
1884+
# Enable or disable ARCHIVE plugin. Possible values are ON, OFF,
1885+
# FORCE (don't start if the plugin fails to load),
1886+
# FORCE_PLUS_PERMANENT (like FORCE, but the plugin can not be uninstalled).
18841887
push @optional_plugins, $1
18851888
if /^ --([-a-z0-9]+)\[=name\] +Enable or disable \w+ plugin. One of: ON, OFF, FORCE/;
18861889
next;

mysql-test/r/mysqld--help.result

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ The following specify which files/extra groups are read (specified before remain
115115
that this is a limit per thread!
116116
--changed-page-bitmaps[=name]
117117
Enable or disable CHANGED_PAGE_BITMAPS plugin. One of:
118-
ON, OFF, FORCE (don't start if the plugin fails to load).
118+
ON, OFF, FORCE (don't start if the plugin fails to load),
119+
FORCE_PLUS_PERMANENT (like FORCE, but the plugin can not
120+
be uninstalled).
119121
--character-set-client-handshake
120122
Don't ignore client side character set value sent during
121123
handshake.

sql/sql_plugin.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ uint plugin_maturity_map[]=
7777
{ 0, 1, 2, 3, 4, 5, 6 };
7878

7979
/*
80-
When you ad a new plugin type, add both a string and make sure that the
80+
When you add a new plugin type, add both a string and make sure that the
8181
init and deinit array are correctly updated.
8282
*/
8383
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,
36433643
const LEX_STRING plugin_dash = { C_STRING_WITH_LEN("plugin-") };
36443644
uint plugin_name_len= strlen(plugin_name);
36453645
uint optnamelen;
3646-
const int max_comment_len= 180;
3646+
const int max_comment_len= 255;
36473647
char *comment= (char *) alloc_root(mem_root, max_comment_len + 1);
36483648
char *optname;
36493649

@@ -3677,8 +3677,9 @@ static int construct_options(MEM_ROOT *mem_root, struct st_plugin_int *tmp,
36773677
options[0].typelib= options[1].typelib= &global_plugin_typelib;
36783678

36793679
strxnmov(comment, max_comment_len, "Enable or disable ", plugin_name,
3680-
" plugin. One of: ON, OFF, FORCE (don't start "
3681-
"if the plugin fails to load).", NullS);
3680+
" plugin. One of: ON, OFF, FORCE (don't start if the plugin"
3681+
" fails to load), FORCE_PLUS_PERMANENT (like FORCE, but the"
3682+
" plugin can not be uninstalled).", NullS);
36823683
options[0].comment= comment;
36833684
/*
36843685
Allocate temporary space for the value of the tristate.

0 commit comments

Comments
 (0)