1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-05 16:59:35 +03:00
mariadb/mysql-test/suite/sys_vars/t/gtid_current_pos_basic.test
unknown 1cd6eb5f94 MDEV-26: Global transaction ID.
Change of user interface to be more logical and more in line with expectations
to work similar to old-style replication.

User can now explicitly choose in CHANGE MASTER whether binlog position is
taken into account (master_gtid_pos=current_pos) or not (master_gtid_pos=
slave_pos) when slave connects to master.

@@gtid_pos is replaced by three separate variables @@gtid_slave_pos (can
be set by user, replicated GTIDs only), @@gtid_binlog_pos (read only), and
@@gtid_current_pos (a combination of the two, most recent GTID within each
domain). mysql.rpl_slave_state is renamed to mysql.gtid_slave_pos to match.

This fixes MDEV-4474.
2013-05-22 17:36:48 +02:00

16 lines
468 B
Plaintext

--source include/not_embedded.inc
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SET GLOBAL gtid_current_pos= '';
SELECT variable_name FROM information_schema.global_variables
WHERE variable_name='gtid_current_pos';
# The value of the variable depends on the binary log, this is tested extensively
# elsewhere in rpl.rpl_gtid*.test
--disable_result_log
SELECT @@gtid_current_pos;
--enable_result_log
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.gtid_current_pos;