mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
MDEV-31226 Server crash or assertion failure with row size close to join_buffer_size
The problem was that JOIN_CACHE::alloc_buffer() did not check if the given join_buffer_value is less than the query require. Added a check for this and disabled join cache if it cannot be used.
This commit is contained in:
parent
832b157bbe
commit
d657f18ea7
3 changed files with 43 additions and 0 deletions
|
|
@ -945,6 +945,9 @@ int JOIN_CACHE::alloc_buffer()
|
|||
join_buff_space_limit))
|
||||
goto fail; // Fatal error
|
||||
}
|
||||
else if (curr_min_buff_space_sz > buff_size)
|
||||
goto fail;
|
||||
|
||||
if (for_explain_only)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue