mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge
This commit is contained in:
@ -7384,6 +7384,18 @@ mysqld_get_one_option(int optid,
|
||||
}
|
||||
break;
|
||||
#endif /* defined(ENABLED_DEBUG_SYNC) */
|
||||
case OPT_ENGINE_CONDITION_PUSHDOWN:
|
||||
/*
|
||||
The last of --engine-condition-pushdown and --optimizer_switch on
|
||||
command line wins (see get_options().
|
||||
*/
|
||||
if (global_system_variables.engine_condition_pushdown)
|
||||
global_system_variables.optimizer_switch|=
|
||||
OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN;
|
||||
else
|
||||
global_system_variables.optimizer_switch&=
|
||||
~OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN;
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -7610,6 +7622,11 @@ static int get_options(int *argc_ptr, char ***argv_ptr)
|
||||
else
|
||||
pool_of_threads_scheduler(&thread_scheduler); /* purecov: tested */
|
||||
#endif
|
||||
|
||||
global_system_variables.engine_condition_pushdown=
|
||||
test(global_system_variables.optimizer_switch &
|
||||
OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user