mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
Implement @@gtid_binlog_state. This is the internal state of the binlog (most recent GTID logged for every domain_id and server_id). This allows to save the state before RESET MASTER and restore it afterwards.
18 lines
417 B
Plaintext
18 lines
417 B
Plaintext
--source include/not_embedded.inc
|
|
|
|
# Most things with gtid_binlog_state requires binlog enabled, and so is
|
|
# tested in rpl suite.
|
|
|
|
SELECT @@GLOBAL.gtid_slave_pos;
|
|
|
|
--error ER_GLOBAL_VARIABLE
|
|
SET gtid_binlog_state= '';
|
|
--error ER_GLOBAL_VARIABLE
|
|
SET SESSION gtid_binlog_state= '';
|
|
|
|
--error ER_NO_DEFAULT
|
|
SET GLOBAL gtid_binlog_state= DEFAULT;
|
|
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT @@session.gtid_binlog_state;
|