1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Simplify fn_rext

- Change interface according to real usage
- Fix comment
- Rename to fn_frm_ext
This commit is contained in:
Michael Widenius
2017-11-17 05:21:12 +02:00
parent 326bfb071c
commit 5b3da95bf3
4 changed files with 9 additions and 15 deletions

View File

@ -1725,8 +1725,7 @@ bool mysql_upgrade_db(THD *thd, LEX_CSTRING *old_db)
DBUG_PRINT("info",("Examining: %s", file->name));
/* skiping non-FRM files */
if (my_strcasecmp(files_charset_info,
(extension= fn_rext(file->name)), reg_ext))
if (!(extension= (char*) fn_frm_ext(file->name)))
continue;
/* A frm file found, add the table info rename list */