1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +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:
Oleg Smirnov
2024-11-27 14:34:24 +07:00
parent 67319f3e8d
commit af14196b8a
7 changed files with 69 additions and 67 deletions

View File

@@ -1885,11 +1885,7 @@ public:
ulonglong curr_space,
ulonglong needed_space);
void set_allowed_join_cache_types();
bool is_allowed_hash_join_access()
{
return MY_TEST(allowed_join_cache_types & JOIN_CACHE_HASHED_BIT) &&
max_allowed_join_cache_level > JOIN_CACHE_HASHED_BIT;
}
bool is_allowed_hash_join_access(const TABLE *table);
/*
Check if we need to create a temporary table.
This has to be done if all tables are not already read (const tables)