1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Bug #42144: plugin_load fails

The enum system variables were handled inconsistently 
as ints, unsigned int and unsigned long on various places.
This caused problems on platforms on which 
sizeof(int) != sizeof(long).
Fixed by homogenizing the type of the enum variables
to unsigned int, since it's size compatible with the C enum
type. 
Removed the test from the experimental list.
This commit is contained in:
Georgi Kodinov
2010-08-03 19:01:30 +03:00
parent 029bc22b67
commit 534e69338a
5 changed files with 18 additions and 15 deletions

View File

@@ -3030,10 +3030,10 @@ 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 integer.
GET_ENUM value is unsigned integer.
*/
options[0].value= options[1].value= (uchar **)alloc_root(mem_root,
sizeof(int));
sizeof(uint));
*((uint*) options[0].value)= *((uint*) options[1].value)=
(uint) options[0].def_value;