mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
Merge branch '10.5' into 10.6
This commit is contained in:
commit
a135551569
29 changed files with 317 additions and 51 deletions
|
|
@ -2855,6 +2855,18 @@ static void update_file_path(MYSQL_THD thd,
|
|||
{
|
||||
char *new_name= (*(char **) save) ? *(char **) save : empty_str;
|
||||
|
||||
if (strlen(new_name) + 4 > FN_REFLEN)
|
||||
{
|
||||
error_header();
|
||||
fprintf(stderr,
|
||||
"server_audit_file_path can't exceed %d characters.\n",
|
||||
FN_REFLEN - 4);
|
||||
fprintf(stderr, "Log filename remains unchanged '%s'.\n", file_path);
|
||||
CLIENT_ERROR(1, "server_audit_file_path can't exceed %d characters.",
|
||||
MYF(ME_WARNING), FN_REFLEN - 4);
|
||||
return;
|
||||
}
|
||||
|
||||
ADD_ATOMIC(internal_stop_logging, 1);
|
||||
error_header();
|
||||
fprintf(stderr, "Log file name was changed to '%s'.\n", new_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue