mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge
This commit is contained in:
@ -3025,11 +3025,11 @@ static int construct_options(MEM_ROOT *mem_root, struct st_plugin_int *tmp,
|
||||
Allocate temporary space for the value of the tristate.
|
||||
This option will have a limited lifetime and is not used beyond
|
||||
server initialization.
|
||||
GET_ENUM value is an unsigned integer.
|
||||
GET_ENUM value is an unsigned long integer.
|
||||
*/
|
||||
options[0].value= options[1].value=
|
||||
(uchar **)alloc_root(mem_root, sizeof(uint));
|
||||
*((uint*) options[0].value)= (uint) options[0].def_value;
|
||||
(uchar **)alloc_root(mem_root, sizeof(ulong));
|
||||
*((ulong*) options[0].value)= (ulong) options[0].def_value;
|
||||
|
||||
options+= 2;
|
||||
}
|
||||
@ -3328,7 +3328,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
|
||||
list is always the <plugin name> option value.
|
||||
*/
|
||||
if (!tmp->is_mandatory)
|
||||
plugin_load_policy= (enum_plugin_load_policy)*(uint*)opts[0].value;
|
||||
plugin_load_policy= (enum_plugin_load_policy)*(ulong*)opts[0].value;
|
||||
}
|
||||
|
||||
disable_plugin= (plugin_load_policy == PLUGIN_OFF);
|
||||
|
Reference in New Issue
Block a user