diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-12-08 16:05:07 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2021-07-26 11:28:06 +0530 |
commit | af0b26f9b7ccdf082ec8a631d45726ef78f173b0 (patch) | |
tree | c3a0bbc2ad8c0beb1c3e05b2ba4cba8491add284 /storage/tokudb/mysql-test | |
parent | f29b3d6d8239d54e08868912093b16187086e133 (diff) | |
download | mariadb-git-af0b26f9b7ccdf082ec8a631d45726ef78f173b0.tar.gz |
MDEV-23786: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())'
failed for TokuDB engine CREATE TABLE
Analysis: Assertion failure happens because the database doesn't exist to
create the table but ha_tokudb::create() still returns false.
So error is not reported.
Fix: Store the error state and report the error.
Diffstat (limited to 'storage/tokudb/mysql-test')
-rw-r--r-- | storage/tokudb/mysql-test/tokudb/r/bug-23786.result | 10 | ||||
-rw-r--r-- | storage/tokudb/mysql-test/tokudb/t/bug-23786.test | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/storage/tokudb/mysql-test/tokudb/r/bug-23786.result b/storage/tokudb/mysql-test/tokudb/r/bug-23786.result new file mode 100644 index 00000000000..1b21758b85a --- /dev/null +++ b/storage/tokudb/mysql-test/tokudb/r/bug-23786.result @@ -0,0 +1,10 @@ +# +# 10.2 Test +# +# MDEV-23786: Assertion `!is_set() || (m_status == DA_OK_BULK && +# is_bulk_op())'failed for TokuDB engine CREATE TABLE +# +set default_storage_engine='tokudb'; +CREATE TABLE _uppercase.t (a INT) ENGINE=TokuDB; +ERROR 42000: Unknown database '_uppercase' +# End of 10.2 Test diff --git a/storage/tokudb/mysql-test/tokudb/t/bug-23786.test b/storage/tokudb/mysql-test/tokudb/t/bug-23786.test new file mode 100644 index 00000000000..a8a0c4a1577 --- /dev/null +++ b/storage/tokudb/mysql-test/tokudb/t/bug-23786.test @@ -0,0 +1,14 @@ +source include/have_tokudb.inc; + +--echo # +--echo # 10.2 Test +--echo # +--echo # MDEV-23786: Assertion `!is_set() || (m_status == DA_OK_BULK && +--echo # is_bulk_op())'failed for TokuDB engine CREATE TABLE +--echo # + +set default_storage_engine='tokudb'; +--error ER_BAD_DB_ERROR +CREATE TABLE _uppercase.t (a INT) ENGINE=TokuDB; + +--echo # End of 10.2 Test |