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:
@@ -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.
|
||||
*/
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user