mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#46043 mysqld --skip-innodb does not skip InnoDB
The prefix --skip- didn't work on 64 bit big endian machines because of how the value pointer was casted. mysys/my_getopt.c: * Use the interface! The value pointer must correspond to the type mask or it will break on big endian platforms.
This commit is contained in:
@ -415,11 +415,11 @@ invalid value '%s'",
|
|||||||
(optp->var_type & GET_TYPE_MASK) == GET_ENUM))
|
(optp->var_type & GET_TYPE_MASK) == GET_ENUM))
|
||||||
{
|
{
|
||||||
if (optend == disabled_my_option)
|
if (optend == disabled_my_option)
|
||||||
*((my_bool*) value)= (my_bool) 0;
|
init_one_value(optp, value, 0);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!optend) /* No argument -> enable option */
|
if (!optend) /* No argument -> enable option */
|
||||||
*((my_bool*) value)= (my_bool) 1;
|
init_one_value(optp, value, 1);
|
||||||
else
|
else
|
||||||
argument= optend;
|
argument= optend;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user