1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-33680 Server hangs or assertion fails upon SELECT with limited max_tmp_space_usage

The bug was that Aggregator_distinct::add() did not properly handle
write errors. (Old bug exposed by the new code).
This commit is contained in:
Monty
2024-04-06 12:07:49 +03:00
committed by Sergei Golubchik
parent b9f5793176
commit 865ef0f567
5 changed files with 26 additions and 3 deletions

View File

@@ -22353,7 +22353,7 @@ bool open_tmp_table(TABLE *table)
RETURN
FALSE - OK
TRUE - Error
TRUE - Error. my_error() have been called
*/
@@ -22569,7 +22569,7 @@ bool create_internal_tmp_table(TABLE *table, KEY *org_keyinfo,
RETURN
FALSE - OK
TRUE - Error
TRUE - Error ; my_error() has been called.
*/
/* Create internal MyISAM temporary table */
@@ -22709,6 +22709,8 @@ bool create_internal_tmp_table(TABLE *table, KEY *org_keyinfo,
/*
If a HEAP table gets full, create a internal table in MyISAM or Maria
and copy all rows to this
In case of error, my_error() or handler::print_error() will be called.
*/