-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix main.truncate failures in --embedded
- Loading branch information
Showing
4 changed files
with
55 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK && | ||
# is_bulk_op())' failed upon killed TRUNCATE | ||
# | ||
CREATE TABLE t1 (a INT) ENGINE=MyISAM; | ||
LOCK TABLE t1 READ; | ||
connect con1,localhost,root,,test; | ||
SET SESSION max_session_mem_used= 65536; | ||
LOCK TABLE t1 WRITE; | ||
connection default; | ||
SELECT * FROM t1; | ||
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 | ||
disconnect con1; | ||
connection default; | ||
DROP TABLE t1; | ||
# | ||
# End of 10.2 tests | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--source include/not_embedded.inc | ||
|
||
--echo # | ||
--echo # MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK && | ||
--echo # is_bulk_op())' failed upon killed TRUNCATE | ||
--echo # | ||
|
||
CREATE TABLE t1 (a INT) ENGINE=MyISAM; | ||
LOCK TABLE t1 READ; | ||
|
||
--connect (con1,localhost,root,,test) | ||
SET SESSION max_session_mem_used= 65536; | ||
--send | ||
LOCK TABLE t1 WRITE; | ||
|
||
--connection default | ||
SELECT * FROM t1; | ||
UNLOCK TABLES; | ||
|
||
--connection con1 | ||
--reap | ||
--error ER_OPTION_PREVENTS_STATEMENT | ||
TRUNCATE TABLE t1; | ||
|
||
--disconnect con1 | ||
--connection default | ||
DROP TABLE t1; | ||
|
||
--echo # | ||
--echo # End of 10.2 tests | ||
--echo # |