Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d9bdcddc
Commit
d9bdcddc
authored
Dec 19, 2007
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update name of binlog file for ndb_binlog* tests
parent
a8210af5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
162 additions
and
159 deletions
+162
-159
mysql-test/include/default_mysqld.cnf
mysql-test/include/default_mysqld.cnf
+3
-0
mysql-test/suite/ndb/r/ndb_binlog_ddl_multi.result
mysql-test/suite/ndb/r/ndb_binlog_ddl_multi.result
+57
-57
mysql-test/suite/ndb/r/ndb_binlog_discover.result
mysql-test/suite/ndb/r/ndb_binlog_discover.result
+9
-9
mysql-test/suite/ndb/r/ndb_binlog_format.result
mysql-test/suite/ndb/r/ndb_binlog_format.result
+13
-13
mysql-test/suite/ndb/r/ndb_binlog_ignore_db.result
mysql-test/suite/ndb/r/ndb_binlog_ignore_db.result
+1
-1
mysql-test/suite/ndb/r/ndb_binlog_log_bin.result
mysql-test/suite/ndb/r/ndb_binlog_log_bin.result
+48
-48
mysql-test/suite/ndb/r/ndb_binlog_multi.result
mysql-test/suite/ndb/r/ndb_binlog_multi.result
+30
-30
mysql-test/suite/ndb/t/ndb_binlog_discover.test
mysql-test/suite/ndb/t/ndb_binlog_discover.test
+1
-1
No files found.
mysql-test/include/default_mysqld.cnf
View file @
d9bdcddc
...
@@ -16,3 +16,6 @@ max_heap_table_size= 1M
...
@@ -16,3 +16,6 @@ max_heap_table_size= 1M
loose-innodb_data_file_path= ibdata1:10M:autoextend
loose-innodb_data_file_path= ibdata1:10M:autoextend
set-variable= slave_net_timeout=120
set-variable= slave_net_timeout=120
log-bin
mysql-test/suite/ndb/r/ndb_binlog_ddl_multi.result
View file @
d9bdcddc
...
@@ -10,32 +10,32 @@ create table t1 (a int primary key) engine=ndb;
...
@@ -10,32 +10,32 @@ create table t1 (a int primary key) engine=ndb;
create table t2 (a int primary key) engine=ndb;
create table t2 (a int primary key) engine=ndb;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1
.000001 # Query 1 # create database mysqltest
m
ysqld-bin
.000001 # Query 1 # create database mysqltest
m
aster-bin1
.000001 # Query 1 # use `mysqltest`; create table t1 (a int primary key) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `mysqltest`; create table t1 (a int primary key) engine=ndb
m
aster-bin1.000001 # Query 10
2 # use `test`; create table t2 (a int primary key) engine=ndb
m
ysqld-bin.000001 # Query
2 # use `test`; create table t2 (a int primary key) engine=ndb
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster
-bin.000001 # Query 1 # create database mysqltest
m
ysqld
-bin.000001 # Query 1 # create database mysqltest
m
aster
-bin.000001 # Query 1 # use `mysqltest`; create table t1 (a int primary key) engine=ndb
m
ysqld
-bin.000001 # Query 1 # use `mysqltest`; create table t1 (a int primary key) engine=ndb
m
aster-bin.000001 # Query 10
2 # use `test`; create table t2 (a int primary key) engine=ndb
m
ysqld-bin.000001 # Query
2 # use `test`; create table t2 (a int primary key) engine=ndb
reset master;
reset master;
reset master;
reset master;
alter table t2 add column (b int);
alter table t2 add column (b int);
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin.000001 # Query 10
2 # use `test`; alter table t2 add column (b int)
m
ysqld-bin.000001 # Query
2 # use `test`; alter table t2 add column (b int)
reset master;
reset master;
reset master;
reset master;
ALTER DATABASE mysqltest CHARACTER SET latin1;
ALTER DATABASE mysqltest CHARACTER SET latin1;
drop table mysqltest.t1;
drop table mysqltest.t1;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin.000001 # Query 10
2 # ALTER DATABASE mysqltest CHARACTER SET latin1
m
ysqld-bin.000001 # Query
2 # ALTER DATABASE mysqltest CHARACTER SET latin1
m
aster-bin.000001 # Query 10
2 # use `mysqltest`; drop table `t1`
m
ysqld-bin.000001 # Query
2 # use `mysqltest`; drop table `t1`
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin.000001 # Query 10
2 # ALTER DATABASE mysqltest CHARACTER SET latin1
m
ysqld-bin.000001 # Query
2 # ALTER DATABASE mysqltest CHARACTER SET latin1
m
aster-bin.000001 # Query 10
2 # use `mysqltest`; drop table `t1`
m
ysqld-bin.000001 # Query
2 # use `mysqltest`; drop table `t1`
reset master;
reset master;
reset master;
reset master;
use test;
use test;
...
@@ -44,14 +44,14 @@ drop database mysqltest;
...
@@ -44,14 +44,14 @@ drop database mysqltest;
create table t1 (a int primary key) engine=ndb;
create table t1 (a int primary key) engine=ndb;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (test.t2)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (test.t2)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
m
aster-bin1
.000001 # Query 1 # drop database mysqltest
m
ysqld-bin
.000001 # Query 1 # drop database mysqltest
m
aster-bin1
.000001 # Query 1 # use `test`; create table t1 (a int primary key) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `test`; create table t1 (a int primary key) engine=ndb
drop table t2;
drop table t2;
reset master;
reset master;
reset master;
reset master;
...
@@ -85,63 +85,63 @@ DROP LOGFILE GROUP lg1
...
@@ -85,63 +85,63 @@ DROP LOGFILE GROUP lg1
ENGINE =NDB;
ENGINE =NDB;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1
.000001 # Query 1 # CREATE LOGFILE GROUP lg1
m
ysqld-bin
.000001 # Query 1 # CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
ADD UNDOFILE 'undofile.dat'
INITIAL_SIZE 16M
INITIAL_SIZE 16M
UNDO_BUFFER_SIZE = 1M
UNDO_BUFFER_SIZE = 1M
ENGINE=NDB
ENGINE=NDB
m
aster-bin1
.000001 # Query 1 # ALTER LOGFILE GROUP lg1
m
ysqld-bin
.000001 # Query 1 # ALTER LOGFILE GROUP lg1
ADD UNDOFILE 'undofile02.dat'
ADD UNDOFILE 'undofile02.dat'
INITIAL_SIZE = 4M
INITIAL_SIZE = 4M
ENGINE=NDB
ENGINE=NDB
m
aster-bin1
.000001 # Query 1 # CREATE TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'
ADD DATAFILE 'datafile.dat'
USE LOGFILE GROUP lg1
USE LOGFILE GROUP lg1
INITIAL_SIZE 12M
INITIAL_SIZE 12M
ENGINE NDB
ENGINE NDB
m
aster-bin1
.000001 # Query 1 # ALTER TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # ALTER TABLESPACE ts1
ADD DATAFILE 'datafile02.dat'
ADD DATAFILE 'datafile02.dat'
INITIAL_SIZE = 4M
INITIAL_SIZE = 4M
ENGINE=NDB
ENGINE=NDB
m
aster-bin1
.000001 # Query 1 # ALTER TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat'
DROP DATAFILE 'datafile.dat'
ENGINE = NDB
ENGINE = NDB
m
aster-bin1
.000001 # Query 1 # ALTER TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # ALTER TABLESPACE ts1
DROP DATAFILE 'datafile02.dat'
DROP DATAFILE 'datafile02.dat'
ENGINE = NDB
ENGINE = NDB
m
aster-bin1
.000001 # Query 1 # DROP TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # DROP TABLESPACE ts1
ENGINE = NDB
ENGINE = NDB
m
aster-bin1
.000001 # Query 1 # DROP LOGFILE GROUP lg1
m
ysqld-bin
.000001 # Query 1 # DROP LOGFILE GROUP lg1
ENGINE =NDB
ENGINE =NDB
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1
.000001 # Query 1 # CREATE LOGFILE GROUP lg1
m
ysqld-bin
.000001 # Query 1 # CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
ADD UNDOFILE 'undofile.dat'
INITIAL_SIZE 16M
INITIAL_SIZE 16M
UNDO_BUFFER_SIZE = 1M
UNDO_BUFFER_SIZE = 1M
ENGINE=NDB
ENGINE=NDB
m
aster-bin1
.000001 # Query 1 # ALTER LOGFILE GROUP lg1
m
ysqld-bin
.000001 # Query 1 # ALTER LOGFILE GROUP lg1
ADD UNDOFILE 'undofile02.dat'
ADD UNDOFILE 'undofile02.dat'
INITIAL_SIZE = 4M
INITIAL_SIZE = 4M
ENGINE=NDB
ENGINE=NDB
m
aster-bin1
.000001 # Query 1 # CREATE TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'
ADD DATAFILE 'datafile.dat'
USE LOGFILE GROUP lg1
USE LOGFILE GROUP lg1
INITIAL_SIZE 12M
INITIAL_SIZE 12M
ENGINE NDB
ENGINE NDB
m
aster-bin1
.000001 # Query 1 # ALTER TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # ALTER TABLESPACE ts1
ADD DATAFILE 'datafile02.dat'
ADD DATAFILE 'datafile02.dat'
INITIAL_SIZE = 4M
INITIAL_SIZE = 4M
ENGINE=NDB
ENGINE=NDB
m
aster-bin1
.000001 # Query 1 # ALTER TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat'
DROP DATAFILE 'datafile.dat'
ENGINE = NDB
ENGINE = NDB
m
aster-bin1
.000001 # Query 1 # ALTER TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # ALTER TABLESPACE ts1
DROP DATAFILE 'datafile02.dat'
DROP DATAFILE 'datafile02.dat'
ENGINE = NDB
ENGINE = NDB
m
aster-bin1
.000001 # Query 1 # DROP TABLESPACE ts1
m
ysqld-bin
.000001 # Query 1 # DROP TABLESPACE ts1
ENGINE = NDB
ENGINE = NDB
m
aster-bin1
.000001 # Query 1 # DROP LOGFILE GROUP lg1
m
ysqld-bin
.000001 # Query 1 # DROP LOGFILE GROUP lg1
ENGINE =NDB
ENGINE =NDB
drop table t1;
drop table t1;
reset master;
reset master;
...
@@ -156,13 +156,13 @@ create table t3 (a int key) engine=ndb;
...
@@ -156,13 +156,13 @@ create table t3 (a int key) engine=ndb;
rename table t3 to t4, t2 to t3, t1 to t2, t4 to t1;
rename table t3 to t4, t2 to t3, t1 to t2, t4 to t1;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1
.000001 # Query 1 # use `test`; create table t1 (a int key) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `test`; create table t1 (a int key) engine=ndb
m
aster-bin1
.000001 # Query 1 # use `test`; create table t2 (a int key) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `test`; create table t2 (a int key) engine=ndb
m
aster-bin1
.000001 # Query 1 # use `test`; create table t3 (a int key) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `test`; create table t3 (a int key) engine=ndb
m
aster-bin1
.000001 # Query 1 # use `test`; rename table `test.t3` to `test.t4`
m
ysqld-bin
.000001 # Query 1 # use `test`; rename table `test.t3` to `test.t4`
m
aster-bin1
.000001 # Query 1 # use `test`; rename table `test.t2` to `test.t3`
m
ysqld-bin
.000001 # Query 1 # use `test`; rename table `test.t2` to `test.t3`
m
aster-bin1
.000001 # Query 1 # use `test`; rename table `test.t1` to `test.t2`
m
ysqld-bin
.000001 # Query 1 # use `test`; rename table `test.t1` to `test.t2`
m
aster-bin1
.000001 # Query 1 # use `test`; rename table `test.t4` to `test.t1`
m
ysqld-bin
.000001 # Query 1 # use `test`; rename table `test.t4` to `test.t1`
drop table t1;
drop table t1;
drop table t2;
drop table t2;
drop table t3;
drop table t3;
...
@@ -179,18 +179,18 @@ insert into t2 values(2);
...
@@ -179,18 +179,18 @@ insert into t2 values(2);
drop table t2;
drop table t2;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1
.000001 # Query 1 # use `test`; create table t1 (a int key) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `test`; create table t1 (a int key) engine=ndb
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (test.t1)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (test.t1)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
m
aster-bin1
.000001 # Query 1 # use `test`; rename table `test.t1` to `test.t2`
m
ysqld-bin
.000001 # Query 1 # use `test`; rename table `test.t1` to `test.t2`
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (test.t2)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (test.t2)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
m
aster-bin1.000001 # Query 10
2 # use `test`; drop table t2
m
ysqld-bin.000001 # Query
2 # use `test`; drop table t2
mysql-test/suite/ndb/r/ndb_binlog_discover.result
View file @
d9bdcddc
...
@@ -3,15 +3,15 @@ create table t1 (a int key) engine=ndb;
...
@@ -3,15 +3,15 @@ create table t1 (a int key) engine=ndb;
reset master;
reset master;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster
-bin.000001 # Incident 1 # #1 (LOST_EVENTS)
m
ysqld
-bin.000001 # Incident 1 # #1 (LOST_EVENTS)
m
aster-bin.000001 # Rotate 1 # master
-bin.000002;pos=4
m
ysqld-bin.000001 # Rotate 1 # mysqld
-bin.000002;pos=4
PURGE MASTER LOGS TO 'm
aster
-bin.000002';
PURGE MASTER LOGS TO 'm
ysqld
-bin.000002';
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster
-bin.000002 # Query 1 # BEGIN
m
ysqld
-bin.000002 # Query 1 # BEGIN
m
aster
-bin.000002 # Table_map 1 # table_id: # (test.t1)
m
ysqld
-bin.000002 # Table_map 1 # table_id: # (test.t1)
m
aster
-bin.000002 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
ysqld
-bin.000002 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
aster
-bin.000002 # Write_rows 1 # table_id: #
m
ysqld
-bin.000002 # Write_rows 1 # table_id: #
m
aster
-bin.000002 # Write_rows 1 # table_id: # flags: STMT_END_F
m
ysqld
-bin.000002 # Write_rows 1 # table_id: # flags: STMT_END_F
m
aster
-bin.000002 # Query 1 # COMMIT
m
ysqld
-bin.000002 # Query 1 # COMMIT
drop table t1;
drop table t1;
mysql-test/suite/ndb/r/ndb_binlog_format.result
View file @
d9bdcddc
...
@@ -14,17 +14,17 @@ UPDATE t3, t2 SET e = 2, b = 3 WHERE f = c;
...
@@ -14,17 +14,17 @@ UPDATE t3, t2 SET e = 2, b = 3 WHERE f = c;
COMMIT;
COMMIT;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster
-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1,1), (1,2), (2,1), (2,2)
m
ysqld
-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1,1), (1,2), (2,1), (2,2)
m
aster
-bin.000001 # Query # # use `test`; INSERT INTO t2 VALUES (1,1), (1,2), (2,1), (2,2)
m
ysqld
-bin.000001 # Query # # use `test`; INSERT INTO t2 VALUES (1,1), (1,2), (2,1), (2,2)
m
aster
-bin.000001 # Query # # use `test`; UPDATE t1, t2 SET m = 2, b = 3 WHERE n = c
m
ysqld
-bin.000001 # Query # # use `test`; UPDATE t1, t2 SET m = 2, b = 3 WHERE n = c
m
aster
-bin.000001 # Query # # use `test`; BEGIN
m
ysqld
-bin.000001 # Query # # use `test`; BEGIN
m
aster
-bin.000001 # Query # # use `test`; INSERT INTO t3 VALUES (1,1), (1,2), (2,1), (2,2)
m
ysqld
-bin.000001 # Query # # use `test`; INSERT INTO t3 VALUES (1,1), (1,2), (2,1), (2,2)
m
aster
-bin.000001 # Query # # use `test`; UPDATE t1, t3 SET m = 2, e = 3 WHERE n = f
m
ysqld
-bin.000001 # Query # # use `test`; UPDATE t1, t3 SET m = 2, e = 3 WHERE n = f
m
aster
-bin.000001 # Query # # use `test`; UPDATE t3, t2 SET e = 2, b = 3 WHERE f = c
m
ysqld
-bin.000001 # Query # # use `test`; UPDATE t3, t2 SET e = 2, b = 3 WHERE f = c
m
aster
-bin.000001 # Query # # use `test`; COMMIT
m
ysqld
-bin.000001 # Query # # use `test`; COMMIT
m
aster
-bin.000001 # Query # # BEGIN
m
ysqld
-bin.000001 # Query # # BEGIN
m
aster
-bin.000001 # Table_map # # table_id: # (test.t3)
m
ysqld
-bin.000001 # Table_map # # table_id: # (test.t3)
m
aster
-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
m
ysqld
-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
m
aster
-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
m
ysqld
-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
m
aster
-bin.000001 # Query # # COMMIT
m
ysqld
-bin.000001 # Query # # COMMIT
DROP TABLE t1, t2, t3;
DROP TABLE t1, t2, t3;
mysql-test/suite/ndb/r/ndb_binlog_ignore_db.result
View file @
d9bdcddc
...
@@ -7,5 +7,5 @@ create table t1 (a int primary key, b int) engine=ndb;
...
@@ -7,5 +7,5 @@ create table t1 (a int primary key, b int) engine=ndb;
insert into t1 values (1, 1);
insert into t1 values (1, 1);
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster
-bin.000001 # Query 1 # use `test`; drop table if exists t1
m
ysqld
-bin.000001 # Query 1 # use `test`; drop table if exists t1
drop database mysqltest;
drop database mysqltest;
mysql-test/suite/ndb/r/ndb_binlog_log_bin.result
View file @
d9bdcddc
...
@@ -11,27 +11,27 @@ insert into t1 values (1,1);
...
@@ -11,27 +11,27 @@ insert into t1 values (1,1);
alter table t1 add c int;
alter table t1 add c int;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster
-bin.000001 # Query 1 # BEGIN
m
ysqld
-bin.000001 # Query 1 # BEGIN
m
aster
-bin.000001 # Table_map 1 # table_id: # (mysqltest.t1)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (mysqltest.t1)
m
aster
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
aster
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
ysqld
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
aster
-bin.000001 # Query 1 # COMMIT
m
ysqld
-bin.000001 # Query 1 # COMMIT
reset master;
reset master;
use mysqltest;
use mysqltest;
insert into t2 values (1,1);
insert into t2 values (1,1);
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysqltest.t1)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysqltest.t1)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysqltest.t2)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysqltest.t2)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
reset master;
reset master;
use mysqltest;
use mysqltest;
drop table t1;
drop table t1;
...
@@ -41,40 +41,40 @@ create table t2 (d int key, e int) engine=ndb;
...
@@ -41,40 +41,40 @@ create table t2 (d int key, e int) engine=ndb;
insert into t1 values (1,1);
insert into t1 values (1,1);
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster
-bin.000001 # Query 1 # BEGIN
m
ysqld
-bin.000001 # Query 1 # BEGIN
m
aster
-bin.000001 # Table_map 1 # table_id: # (mysqltest.t2)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (mysqltest.t2)
m
aster
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
aster
-bin.000001 # Write_rows 1 # table_id: #
m
ysqld
-bin.000001 # Write_rows 1 # table_id: #
m
aster
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
ysqld
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
aster
-bin.000001 # Query 1 # COMMIT
m
ysqld
-bin.000001 # Query 1 # COMMIT
m
aster
-bin.000001 # Query 1 # use `mysqltest`; drop table t1
m
ysqld
-bin.000001 # Query 1 # use `mysqltest`; drop table t1
m
aster
-bin.000001 # Query 1 # use `mysqltest`; drop table t2
m
ysqld
-bin.000001 # Query 1 # use `mysqltest`; drop table t2
m
aster
-bin.000001 # Query 1 # use `mysqltest`; create table t1 (d int key, e int) engine=ndb
m
ysqld
-bin.000001 # Query 1 # use `mysqltest`; create table t1 (d int key, e int) engine=ndb
m
aster
-bin.000001 # Query 1 # use `mysqltest`; create table t2 (d int key, e int) engine=ndb
m
ysqld
-bin.000001 # Query 1 # use `mysqltest`; create table t2 (d int key, e int) engine=ndb
m
aster
-bin.000001 # Query 1 # BEGIN
m
ysqld
-bin.000001 # Query 1 # BEGIN
m
aster
-bin.000001 # Table_map 1 # table_id: # (mysqltest.t1)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (mysqltest.t1)
m
aster
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
aster
-bin.000001 # Write_rows 1 # table_id: #
m
ysqld
-bin.000001 # Write_rows 1 # table_id: #
m
aster
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
ysqld
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
aster
-bin.000001 # Query 1 # COMMIT
m
ysqld
-bin.000001 # Query 1 # COMMIT
use mysqltest;
use mysqltest;
insert into t2 values (1,1);
insert into t2 values (1,1);
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1
.000001 # Query 1 # use `mysqltest`; drop table `t1`
m
ysqld-bin
.000001 # Query 1 # use `mysqltest`; drop table `t1`
m
aster-bin1
.000001 # Query 1 # use `mysqltest`; drop table `t2`
m
ysqld-bin
.000001 # Query 1 # use `mysqltest`; drop table `t2`
m
aster-bin1
.000001 # Query 1 # use `mysqltest`; create table t1 (d int key, e int) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `mysqltest`; create table t1 (d int key, e int) engine=ndb
m
aster-bin1
.000001 # Query 1 # use `mysqltest`; create table t2 (d int key, e int) engine=ndb
m
ysqld-bin
.000001 # Query 1 # use `mysqltest`; create table t2 (d int key, e int) engine=ndb
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysqltest.t1)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysqltest.t1)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysqltest.t2)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysqltest.t2)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
drop database mysqltest;
drop database mysqltest;
mysql-test/suite/ndb/r/ndb_binlog_multi.result
View file @
d9bdcddc
...
@@ -8,13 +8,13 @@ CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB;
...
@@ -8,13 +8,13 @@ CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB;
INSERT INTO t2 VALUES (1,1),(2,2);
INSERT INTO t2 VALUES (1,1),(2,2);
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1.000001 # Query 10
2 # use `test`; CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB
m
ysqld-bin.000001 # Query
2 # use `test`; CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (test.t2)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (test.t2)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
select * from t2 order by a;
select * from t2 order by a;
a b
a b
1 1
1 1
...
@@ -30,14 +30,14 @@ a b
...
@@ -30,14 +30,14 @@ a b
DROP TABLE t2;
DROP TABLE t2;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin.000001 # Query 10
2 # use `test`; CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB
m
ysqld-bin.000001 # Query
2 # use `test`; CREATE TABLE t2 (a INT PRIMARY KEY, b int) ENGINE = NDB
m
aster
-bin.000001 # Query 1 # BEGIN
m
ysqld
-bin.000001 # Query 1 # BEGIN
m
aster
-bin.000001 # Table_map 1 # table_id: # (test.t2)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (test.t2)
m
aster
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
ysqld
-bin.000001 # Table_map 1 # table_id: # (mysql.ndb_apply_status)
m
aster
-bin.000001 # Write_rows 1 # table_id: #
m
ysqld
-bin.000001 # Write_rows 1 # table_id: #
m
aster
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
ysqld
-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
m
aster
-bin.000001 # Query 1 # COMMIT
m
ysqld
-bin.000001 # Query 1 # COMMIT
m
aster
-bin.000001 # Query 1 # use `test`; DROP TABLE t2
m
ysqld
-bin.000001 # Query 1 # use `test`; DROP TABLE t2
SELECT inserts,updates,deletes,schemaops FROM
SELECT inserts,updates,deletes,schemaops FROM
mysql.ndb_binlog_index WHERE epoch=<the_epoch>;
mysql.ndb_binlog_index WHERE epoch=<the_epoch>;
inserts updates deletes schemaops
inserts updates deletes schemaops
...
@@ -48,13 +48,13 @@ CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE = NDB;
...
@@ -48,13 +48,13 @@ CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE = NDB;
INSERT INTO t1 VALUES (1),(2);
INSERT INTO t1 VALUES (1),(2);
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1.000001 # Query 10
2 # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE = NDB
m
ysqld-bin.000001 # Query
2 # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE = NDB
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (test.t1)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (test.t1)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
SELECT @the_epoch2:=epoch,inserts,updates,deletes,schemaops FROM
SELECT @the_epoch2:=epoch,inserts,updates,deletes,schemaops FROM
mysql.ndb_binlog_index ORDER BY epoch DESC LIMIT 1;
mysql.ndb_binlog_index ORDER BY epoch DESC LIMIT 1;
@the_epoch2:=epoch inserts updates deletes schemaops
@the_epoch2:=epoch inserts updates deletes schemaops
...
@@ -66,14 +66,14 @@ inserts updates deletes schemaops
...
@@ -66,14 +66,14 @@ inserts updates deletes schemaops
drop table t1;
drop table t1;
show binlog events from <binlog_start>;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
m
aster-bin1.000001 # Query 10
2 # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE = NDB
m
ysqld-bin.000001 # Query
2 # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE = NDB
m
aster-bin1.000001 # Query 10
2 # BEGIN
m
ysqld-bin.000001 # Query
2 # BEGIN
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (test.t1)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (test.t1)
m
aster-bin1.000001 # Table_map 10
2 # table_id: # (mysql.ndb_apply_status)
m
ysqld-bin.000001 # Table_map
2 # table_id: # (mysql.ndb_apply_status)
m
aster-bin1.000001 # Write_rows 10
2 # table_id: #
m
ysqld-bin.000001 # Write_rows
2 # table_id: #
m
aster-bin1.000001 # Write_rows 10
2 # table_id: # flags: STMT_END_F
m
ysqld-bin.000001 # Write_rows
2 # table_id: # flags: STMT_END_F
m
aster-bin1.000001 # Query 10
2 # COMMIT
m
ysqld-bin.000001 # Query
2 # COMMIT
m
aster-bin1.000001 # Query 10
2 # use `test`; drop table t1
m
ysqld-bin.000001 # Query
2 # use `test`; drop table t1
SELECT inserts,updates,deletes,schemaops FROM
SELECT inserts,updates,deletes,schemaops FROM
mysql.ndb_binlog_index WHERE epoch > <the_epoch> AND epoch <= <the_epoch2>;
mysql.ndb_binlog_index WHERE epoch > <the_epoch> AND epoch <= <the_epoch2>;
inserts updates deletes schemaops
inserts updates deletes schemaops
...
...
mysql-test/suite/ndb/t/ndb_binlog_discover.test
View file @
d9bdcddc
...
@@ -30,7 +30,7 @@ while ($mysql_errno)
...
@@ -30,7 +30,7 @@ while ($mysql_errno)
--
enable_query_log
--
enable_query_log
--
source
include
/
show_binlog_events2
.
inc
--
source
include
/
show_binlog_events2
.
inc
PURGE
MASTER
LOGS
TO
'm
aster
-bin.000002'
;
PURGE
MASTER
LOGS
TO
'm
ysqld
-bin.000002'
;
--
source
include
/
show_binlog_events2
.
inc
--
source
include
/
show_binlog_events2
.
inc
drop
table
t1
;
drop
table
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment