MDEV-28029: No warnings if server starts with "--old"

Analysis: When --old option is used, the corresponding --old-mode variables
are set but warning is not given.
Fix: Use sql_print_warning() to give warning.
This commit is contained in:
Rucha Deodhar 2022-03-09 20:50:49 +05:30
parent 5945e420f1
commit 72a1250585

View file

@ -8496,6 +8496,8 @@ static int get_options(int *argc_ptr, char ***argv_ptr)
global_system_variables.old_behavior|= (OLD_MODE_NO_PROGRESS_INFO |
OLD_MODE_IGNORE_INDEX_ONLY_FOR_JOIN |
OLD_MODE_COMPAT_5_1_CHECKSUM);
sql_print_warning("--old is deprecated and will be removed in a future "
"release. Please use --old-mode instead. ");
}
if (global_system_variables.net_buffer_length >