mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-33281 Make BNL() hint enable hashed join buffers
Since BNL() hint does not specify which whether hashed or non-hashed join cache should be employed, allow usage of hashed ones where possible
This commit is contained in:
@@ -483,24 +483,6 @@ bool hint_key_state(const THD *thd, const TABLE *table,
|
||||
|
||||
|
||||
bool hint_table_state(const THD *thd, const TABLE *table,
|
||||
opt_hints_enum type_arg,
|
||||
uint optimizer_switch)
|
||||
{
|
||||
TABLE_LIST *table_list= table->pos_in_table_list;
|
||||
if (table_list->opt_hints_qb)
|
||||
{
|
||||
bool ret_val= false;
|
||||
if (get_hint_state(table_list->opt_hints_table,
|
||||
table_list->opt_hints_qb,
|
||||
type_arg, &ret_val))
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
return optimizer_flag(thd, optimizer_switch);
|
||||
}
|
||||
|
||||
|
||||
bool hint_table_state_or_fallback(const THD *thd, const TABLE *table,
|
||||
opt_hints_enum type_arg,
|
||||
bool fallback_value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user