1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -200,4 +200,13 @@ UPDATE t1 SET a = '' LIMIT 100;
DROP TABLE t1;
--echo #
--echo # MDEV-33680 Server hangs or assertion fails upon SELECT with limited
--echo # max_tmp_space_usage
--echo #
set max_tmp_session_space_usage = 1024*1024;
--error 201
select count(distinct concat(seq,repeat('x',1000))) from seq_1_to_1000;
--echo # End of 11.5 tests