diff options
author | Alexander Barkov <bar@mariadb.com> | 2020-06-19 16:04:45 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2020-06-19 16:04:45 +0400 |
commit | 26907e7ef18964dad7b6b1fc19c7d1e65e915020 (patch) | |
tree | d54253093ea7b160600c0311532b5bcd94766e7f /dbug | |
parent | bf74f7f9ff40f8a17e739e9ab6f5c906ccb9e892 (diff) | |
download | mariadb-git-26907e7ef18964dad7b6b1fc19c7d1e65e915020.tar.gz |
MDEV-22941 Assertion `idx < array.elements' failed in Dynamic_array<st_mysql_const_lex_string*>::at
The code in fill_schema_schemata() did not take into account that
make_db_list() can leave empty db_names if the requested database
name was too long, so the call for db_names.at(0) crashed on assert.
- Moving the code testing if the database directory exists
into a separate function verify_database_directory_exists()
- Modifying the test to check if db_names is not empty
Diffstat (limited to 'dbug')
0 files changed, 0 insertions, 0 deletions