mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Promote the last few SQL-inaccessible replication options (command line or `mariadb.cnf`) as these GLOBAL read-only system variables: ``` @@master_info_file @@replicate_same_server_id @@show_slave_auth_info ``` Side effect: The latter two options changed from no argument to optional argument. Quote `include/my_getopt.h`: > It should be noted that for historical reasons variables with the > combination arg_type=NO_ARG, my_option::var_type=GET_BOOL still > accepts arguments. This is someone counter intuitive and care should > be taken if the code is refactored. Reviewed-by: Brandon Nesterenko <brandon.nesterenko@mariadb.com>
20 lines
627 B
Plaintext
20 lines
627 B
Plaintext
--source include/not_embedded.inc
|
|
# MDEV-30189: Test minimal correctness of `@@master_info_file` itself
|
|
|
|
--echo # GLOBAL scope
|
|
# Expect different from default ('master.info') as configured by `.opt`
|
|
SELECT @@GLOBAL.master_info_file;
|
|
SELECT @@master_info_file;
|
|
|
|
--echo # Not SESSION scope
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT @@SESSION.master_info_file;
|
|
|
|
--echo # Read-only
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SET @@master_info_file= 'master.info';
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SET @@GLOBAL.master_info_file= 'master.info';
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SET @@SESSION.master_info_file= 'master.info';
|