summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2021-09-15 16:37:54 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2021-09-16 17:29:37 +0200
commitdce490e9d4d91a7e00111bd515db558cadc19d06 (patch)
treeff069506e447bfba82f06459f2122d9ec8f8ccc8
parentdabc3329c30d3be53449d49f501acaf0b0788dbf (diff)
downloadmariadb-git-dce490e9d4d91a7e00111bd515db558cadc19d06.tar.gz
Give less memory to get reliable error.
-rw-r--r--mysql-test/r/truncate_notembedded.result4
-rw-r--r--mysql-test/t/truncate_notembedded.test2
2 files changed, 3 insertions, 3 deletions
diff --git a/mysql-test/r/truncate_notembedded.result b/mysql-test/r/truncate_notembedded.result
index 18a01c684e7..dabd5474141 100644
--- a/mysql-test/r/truncate_notembedded.result
+++ b/mysql-test/r/truncate_notembedded.result
@@ -5,7 +5,7 @@
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
LOCK TABLE t1 READ;
connect con1,localhost,root,,test;
-SET SESSION max_session_mem_used= 65536;
+SET SESSION max_session_mem_used= 45500;
LOCK TABLE t1 WRITE;
connection default;
SELECT * FROM t1;
@@ -13,7 +13,7 @@ a
UNLOCK TABLES;
connection con1;
TRUNCATE TABLE t1;
-ERROR HY000: The MariaDB server is running with the --max-thread-mem-used=65536 option so it cannot execute this statement
+ERROR HY000: The MariaDB server is running with the --max-thread-mem-used=45500 option so it cannot execute this statement
disconnect con1;
connection default;
DROP TABLE t1;
diff --git a/mysql-test/t/truncate_notembedded.test b/mysql-test/t/truncate_notembedded.test
index 7e186c8f7d5..3addad2d975 100644
--- a/mysql-test/t/truncate_notembedded.test
+++ b/mysql-test/t/truncate_notembedded.test
@@ -9,7 +9,7 @@ CREATE TABLE t1 (a INT) ENGINE=MyISAM;
LOCK TABLE t1 READ;
--connect (con1,localhost,root,,test)
-SET SESSION max_session_mem_used= 65536;
+SET SESSION max_session_mem_used= 45500;
--send
LOCK TABLE t1 WRITE;