1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

cleanup: make dd_frm_type to work as documented

remove redundant argument, return all possible enum values
This commit is contained in:
Sergei Golubchik
2020-06-15 14:06:08 +02:00
parent 2bb5981c20
commit 35f566db8d
6 changed files with 26 additions and 35 deletions

View File

@ -1720,8 +1720,7 @@ int plugin_init(int *argc, char **argv, int flags)
{
char path[FN_REFLEN + 1];
build_table_filename(path, sizeof(path) - 1, "mysql", "plugin", reg_ext, 0);
bool dummy;
Table_type ttype= dd_frm_type(0, path, &plugin_table_engine_name, &dummy);
Table_type ttype= dd_frm_type(0, path, &plugin_table_engine_name);
if (ttype != TABLE_TYPE_NORMAL)
plugin_table_engine_name=empty_clex_str;
}