mirror of
https://github.com/MariaDB/server.git
synced 2025-05-10 02:01:19 +03:00
Merged lp:maria/maria-10.0-galera up to revision 3879. Added a new functions to handler API to forcefully abort_transaction, producing fake_trx_id, get_checkpoint and set_checkpoint for XA. These were added for future possiblity to add more storage engines that could use galera replication.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
SELECT COUNT(@@GLOBAL.wsrep_node_address);
|
|
--echo 1 Expected
|
|
|
|
--error 1232
|
|
SET @@GLOBAL.wsrep_node_address=1;
|
|
--echo Expected error 'Read only variable'
|
|
|
|
SELECT COUNT(@@GLOBAL.wsrep_node_address);
|
|
--echo 1 Expected
|
|
|
|
SELECT @@GLOBAL.wsrep_node_address = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='wsrep_node_address';
|
|
--echo 1 Expected
|
|
|
|
SELECT COUNT(@@GLOBAL.wsrep_node_address);
|
|
--echo 1 Expected
|
|
|
|
SELECT COUNT(VARIABLE_VALUE)
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='wsrep_node_address';
|
|
--echo 1 Expected
|
|
|
|
SELECT @@wsrep_node_address = @@GLOBAL.wsrep_node_address;
|
|
--echo 1 Expected
|
|
|
|
SELECT COUNT(@@wsrep_node_address);
|
|
--echo 1 Expected
|
|
|
|
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT COUNT(@@local.wsrep_node_address);
|
|
--echo Expected error 'Variable is a GLOBAL variable'
|
|
|
|
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT COUNT(@@SESSION.wsrep_node_address);
|
|
--echo Expected error 'Variable is a GLOBAL variable'
|
|
|
|
SELECT COUNT(@@GLOBAL.wsrep_node_address);
|
|
--echo 1 Expected
|