mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
49 lines
1.3 KiB
Text
49 lines
1.3 KiB
Text
connection node_2;
|
|
connection node_1;
|
|
connection node_1;
|
|
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
connection node_2;
|
|
SET session wsrep_sync_wait=0;
|
|
SET session wsrep_causal_reads=OFF;
|
|
Warnings:
|
|
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
|
|
FLUSH TABLE WITH READ LOCK;
|
|
connection node_1;
|
|
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
|
|
INSERT INTO t1 VALUES (2,3);
|
|
connection node_2a;
|
|
SET session wsrep_sync_wait=0;
|
|
SET session wsrep_causal_reads=OFF;
|
|
Warnings:
|
|
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
FLUSH TABLES t1 WITH READ LOCK;;
|
|
connection node_2;
|
|
UNLOCK TABLES;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
connection node_2a;
|
|
UNLOCK TABLES;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`id` int(11) NOT NULL,
|
|
`f2` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
SELECT * from t1;
|
|
id f2
|
|
1 NULL
|
|
2 3
|
|
connection node_1;
|
|
DROP TABLE t1;
|