mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
26076b6e2a
new apply_status table ndb_restore adoption mysql-test/r/ndb_restore_compat.result: new apply_status table test adoption mysql-test/r/rpl_ndb_log.result: new apply_status table test adoption mysql-test/r/rpl_truncate_7ndb.result: new apply_status table test adoption storage/ndb/tools/restore/consumer_restore.cpp: new apply_status table ndb_restore adoption
91 lines
3.2 KiB
Text
91 lines
3.2 KiB
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
**** On Master ****
|
|
CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
|
|
INSERT INTO t1 VALUES (1,1), (2,2);
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
1 1
|
|
2 2
|
|
**** On Slave ****
|
|
INSERT INTO t1 VALUE (3,3);
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
1 1
|
|
2 2
|
|
3 3
|
|
**** On Master ****
|
|
TRUNCATE TABLE t1;
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
**** On Slave ****
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
**** On Master ****
|
|
DROP TABLE t1;
|
|
SHOW BINLOG EVENTS;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 4 Format_desc 1 102 Server ver: SERVER_VERSION, Binlog ver: 4
|
|
master-bin.000001 102 Query 1 219 use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
|
|
master-bin.000001 219 Query 1 283 BEGIN
|
|
master-bin.000001 283 Table_map 1 40 table_id: # (test.t1)
|
|
master-bin.000001 323 Table_map 1 98 table_id: # (mysql.ndb_apply_status)
|
|
master-bin.000001 381 Write_rows 1 156 table_id: #
|
|
master-bin.000001 439 Write_rows 1 203 table_id: # flags: STMT_END_F
|
|
master-bin.000001 486 Query 1 551 COMMIT
|
|
master-bin.000001 551 Query 1 631 use `test`; TRUNCATE TABLE t1
|
|
master-bin.000001 631 Query 1 707 use `test`; DROP TABLE t1
|
|
**** On Master ****
|
|
CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
|
|
INSERT INTO t1 VALUES (1,1), (2,2);
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
1 1
|
|
2 2
|
|
**** On Slave ****
|
|
INSERT INTO t1 VALUE (3,3);
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
1 1
|
|
2 2
|
|
3 3
|
|
**** On Master ****
|
|
DELETE FROM t1;
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
**** On Slave ****
|
|
SELECT * FROM t1 ORDER BY a,b;
|
|
a b
|
|
3 3
|
|
**** On Master ****
|
|
DROP TABLE t1;
|
|
SHOW BINLOG EVENTS;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 4 Format_desc 1 102 Server ver: SERVER_VERSION, Binlog ver: 4
|
|
master-bin.000001 102 Query 1 219 use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
|
|
master-bin.000001 219 Query 1 283 BEGIN
|
|
master-bin.000001 283 Table_map 1 40 table_id: # (test.t1)
|
|
master-bin.000001 323 Table_map 1 98 table_id: # (mysql.ndb_apply_status)
|
|
master-bin.000001 381 Write_rows 1 156 table_id: #
|
|
master-bin.000001 439 Write_rows 1 203 table_id: # flags: STMT_END_F
|
|
master-bin.000001 486 Query 1 551 COMMIT
|
|
master-bin.000001 551 Query 1 631 use `test`; TRUNCATE TABLE t1
|
|
master-bin.000001 631 Query 1 707 use `test`; DROP TABLE t1
|
|
master-bin.000001 707 Query 1 824 use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
|
|
master-bin.000001 824 Query 1 888 BEGIN
|
|
master-bin.000001 888 Table_map 1 40 table_id: # (test.t1)
|
|
master-bin.000001 928 Table_map 1 98 table_id: # (mysql.ndb_apply_status)
|
|
master-bin.000001 986 Write_rows 1 156 table_id: #
|
|
master-bin.000001 1044 Write_rows 1 203 table_id: # flags: STMT_END_F
|
|
master-bin.000001 1091 Query 1 1156 COMMIT
|
|
master-bin.000001 1156 Query 1 1220 BEGIN
|
|
master-bin.000001 1220 Table_map 1 40 table_id: # (test.t1)
|
|
master-bin.000001 1260 Table_map 1 98 table_id: # (mysql.ndb_apply_status)
|
|
master-bin.000001 1318 Write_rows 1 156 table_id: #
|
|
master-bin.000001 1376 Delete_rows 1 195 table_id: # flags: STMT_END_F
|
|
master-bin.000001 1415 Query 1 1480 COMMIT
|
|
master-bin.000001 1480 Query 1 1556 use `test`; DROP TABLE t1
|