diff options
author | Monty <monty@mariadb.org> | 2021-03-19 18:15:23 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2021-03-20 21:17:32 +0200 |
commit | cccc96d66c2aacb9939c8c1389b38317ad601956 (patch) | |
tree | ec1473141a800f3ff3e11c2368160cccc32bb6a7 /sql/sql_db.cc | |
parent | 8f33f49ebea4ecea2953a8b16f2da59cfbd84e37 (diff) | |
download | mariadb-git-cccc96d66c2aacb9939c8c1389b38317ad601956.tar.gz |
Fixed wrong initializations of Dynamic_array
Other things:
- Added size() function to Dynamic_array()
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 9bf16220535..d4fd66e233d 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -1228,7 +1228,7 @@ static bool find_db_tables_and_rm_known_files(THD *thd, MY_DIR *dirp, DBUG_PRINT("enter",("path: %s", path)); /* first, get the list of tables */ - Dynamic_array<LEX_CSTRING*> files(dirp->number_of_files); + Dynamic_array<LEX_CSTRING*> files(PSI_INSTRUMENT_MEM, dirp->number_of_files); Discovered_table_list tl(thd, &files); if (ha_discover_table_names(thd, &db, dirp, &tl, true)) DBUG_RETURN(1); |