mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Don't give warning about usage of --language with full path
Only give warning if warnings > 2, as there is no plan to change the current behavior.
This commit is contained in:
@@ -213,9 +213,12 @@ static File open_error_msg_file(const char *file_name, const char *language,
|
|||||||
O_RDONLY | O_SHARE | O_BINARY,
|
O_RDONLY | O_SHARE | O_BINARY,
|
||||||
MYF(0))) < 0)
|
MYF(0))) < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
if (global_system_variables.log_warnings > 2)
|
||||||
|
{
|
||||||
sql_print_warning("An old style --language or -lc-message-dir value with language specific part detected: %s", lc_messages_dir);
|
sql_print_warning("An old style --language or -lc-message-dir value with language specific part detected: %s", lc_messages_dir);
|
||||||
sql_print_warning("Use --lc-messages-dir without language specific part instead.");
|
sql_print_warning("Use --lc-messages-dir without language specific part instead.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
error_pos=1;
|
error_pos=1;
|
||||||
if (mysql_file_read(file, (uchar*) head, 32, MYF(MY_NABP)))
|
if (mysql_file_read(file, (uchar*) head, 32, MYF(MY_NABP)))
|
||||||
goto err;
|
goto err;
|
||||||
|
Reference in New Issue
Block a user