1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-34118 fsp_alloc_free_extent() fails to flag DB_OUT_OF_FILE_SPACE

fsp_alloc_free_extent(): When applicable, set *err = DB_OUT_OF_FILE_SPACE.
This commit is contained in:
Marko Mäkelä
2024-05-10 12:49:16 +03:00
parent 887bb3f735
commit 6bf2b64a97
3 changed files with 30 additions and 0 deletions

View File

@ -635,4 +635,23 @@ CHECK TABLE t;
CHECK TABLE t EXTENDED;
DROP TEMPORARY TABLE t;
--echo #
--echo # MDEV-34118 fsp_alloc_free_extent() fails to flag DB_OUT_OF_FILE_SPACE
--echo #
SET @save_increment = @@GLOBAL.innodb_autoextend_increment;
SET GLOBAL innodb_autoextend_increment=1;
CREATE TEMPORARY TABLE t (c LONGTEXT) ENGINE=INNODB;
if ($MTR_COMBINATION_4K)
{
--error ER_RECORD_FILE_FULL
INSERT INTO t VALUES (REPEAT ('1',16777216));
}
if (!$MTR_COMBINATION_4K)
{
INSERT INTO t VALUES (REPEAT ('1',16777216));
--echo ERROR HY000: The table 't' is full
}
DROP TEMPORARY TABLE t;
SET GLOBAL innodb_autoextend_increment=@save_increment;
--echo # End of 10.6 tests