mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Bug #42144: plugin_load fails
Reverted the ulong->uint diff Re-applied the first diff. The original commit message follows: enum plugin system variables are ulong internally, not int. On systems where long is not the same as an int it causes problems. Fixed by correct typecasting. Removed the test from the experimental list.
This commit is contained in:
@@ -3030,12 +3030,12 @@ 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 unsigned integer.
|
||||
GET_ENUM value is a unsigned long integer.
|
||||
*/
|
||||
options[0].value= options[1].value= (uchar **)alloc_root(mem_root,
|
||||
sizeof(uint));
|
||||
*((uint*) options[0].value)= *((uint*) options[1].value)=
|
||||
(uint) options[0].def_value;
|
||||
sizeof(ulong));
|
||||
*((ulong*) options[0].value)= *((ulong*) options[1].value)=
|
||||
(ulong) options[0].def_value;
|
||||
|
||||
options+= 2;
|
||||
|
||||
|
Reference in New Issue
Block a user