mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.6' into 10.11
This commit is contained in:
@@ -5358,6 +5358,17 @@ extern "C" int thd_current_status(MYSQL_THD thd)
|
||||
}
|
||||
|
||||
|
||||
extern "C" int thd_double_innodb_cardinality(MYSQL_THD thd)
|
||||
{
|
||||
/*
|
||||
The original behavior was to double the cardinality.
|
||||
OPTIMIZER_FIX_INNODB_CARDINALITY means do not double.
|
||||
*/
|
||||
return !(thd->variables.optimizer_adjust_secondary_key_costs &
|
||||
OPTIMIZER_FIX_INNODB_CARDINALITY);
|
||||
}
|
||||
|
||||
|
||||
extern "C" enum enum_server_command thd_current_command(MYSQL_THD thd)
|
||||
{
|
||||
return thd->get_command();
|
||||
|
Reference in New Issue
Block a user