Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-23786: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bul…
…k_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.
- Loading branch information
1 parent
f29b3d6
commit af0b26f
Showing
3 changed files
with
26 additions
and
2 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,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 |
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,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 |