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
d1ac0825
Commit
d1ac0825
authored
Jun 29, 2007
by
skozlov/ksm@mysql.com/virtop.localdomain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#29363
parent
5d5b7ac2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
9 deletions
+17
-9
mysql-test/suite/rpl/include/rpl_mixed_ddl.inc
mysql-test/suite/rpl/include/rpl_mixed_ddl.inc
+1
-1
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
+2
-2
mysql-test/suite/rpl/r/rpl_innodb_mixed_ddl.result
mysql-test/suite/rpl/r/rpl_innodb_mixed_ddl.result
+1
-1
mysql-test/suite/rpl/r/rpl_innodb_mixed_dml.result
mysql-test/suite/rpl/r/rpl_innodb_mixed_dml.result
+9
-3
mysql-test/suite/rpl/t/rpl_innodb_mixed_ddl.test
mysql-test/suite/rpl/t/rpl_innodb_mixed_ddl.test
+2
-1
mysql-test/suite/rpl/t/rpl_innodb_mixed_dml.test
mysql-test/suite/rpl/t/rpl_innodb_mixed_dml.test
+2
-1
No files found.
mysql-test/suite/rpl/include/rpl_mixed_ddl.inc
View file @
d1ac0825
...
@@ -67,7 +67,7 @@ ALTER TABLE t2 DROP COLUMN d;
...
@@ -67,7 +67,7 @@ ALTER TABLE t2 DROP COLUMN d;
--
echo
--
echo
--
echo
********************
SHOW
BINLOG
EVENTS
********************
--
echo
********************
SHOW
BINLOG
EVENTS
********************
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
--
replace_regex
/
table_id
:
[
0
-
9
]
+/
table_id
:
#/
--
replace_regex
/
Server
ver
:
.+/
Server
ver
:
#/ /
table_id: [0-9]+/table_id: #/
show
binlog
events
from
1
;
show
binlog
events
from
1
;
sync_slave_with_master
;
sync_slave_with_master
;
# as we're using UUID we don't SELECT but use "diff" like in rpl_row_UUID
# as we're using UUID we don't SELECT but use "diff" like in rpl_row_UUID
...
...
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
View file @
d1ac0825
...
@@ -326,8 +326,8 @@ DROP VIEW v2;
...
@@ -326,8 +326,8 @@ DROP VIEW v2;
--
echo
--
echo
--
echo
********************
SHOW
BINLOG
EVENTS
********************
--
echo
********************
SHOW
BINLOG
EVENTS
********************
--
replace_column
2
# 5 #
--
replace_column
2
# 5 #
--
replace_regex
/
table_id
:
[
0
-
9
]
+/
table_id
:
#/ /COMMIT.+xid=[0-9]+.+/#/
--
replace_regex
/
Server
ver
:
.+/
Server
ver
:
#/ /
table_id: [0-9]+/table_id: #/ /COMMIT.+xid=[0-9]+.+/#/
show
binlog
events
from
1
02
;
show
binlog
events
from
1
;
sync_slave_with_master
;
sync_slave_with_master
;
# as we're using UUID we don't SELECT but use "diff" like in rpl_row_UUID
# as we're using UUID we don't SELECT but use "diff" like in rpl_row_UUID
--
exec
$MYSQL_DUMP
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test_rpl
>
$MYSQLTEST_VARDIR
/
tmp
/
rpl_switch_stm_row_mixed_master
.
sql
--
exec
$MYSQL_DUMP
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test_rpl
>
$MYSQLTEST_VARDIR
/
tmp
/
rpl_switch_stm_row_mixed_master
.
sql
...
...
mysql-test/suite/rpl/r/rpl_innodb_mixed_ddl.result
View file @
d1ac0825
...
@@ -138,7 +138,7 @@ ALTER TABLE t2 DROP COLUMN d;
...
@@ -138,7 +138,7 @@ ALTER TABLE t2 DROP COLUMN d;
******************** SHOW BINLOG EVENTS ********************
******************** SHOW BINLOG EVENTS ********************
show binlog events from 1;
show binlog events from 1;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Format_desc 1 # Server ver:
5.1.16-beta-debug-log, Binlog ver: 4
master-bin.000001 # Format_desc 1 # Server ver:
#
master-bin.000001 # Query 1 # DROP DATABASE IF EXISTS test_rpl
master-bin.000001 # Query 1 # DROP DATABASE IF EXISTS test_rpl
master-bin.000001 # Query 1 # DROP DATABASE IF EXISTS test_rpl_1
master-bin.000001 # Query 1 # DROP DATABASE IF EXISTS test_rpl_1
master-bin.000001 # Query 1 # CREATE DATABASE test_rpl_1 CHARACTER SET utf8 COLLATE utf8_general_ci
master-bin.000001 # Query 1 # CREATE DATABASE test_rpl_1 CHARACTER SET utf8 COLLATE utf8_general_ci
...
...
mysql-test/suite/rpl/r/rpl_innodb_mixed_dml.result
View file @
d1ac0825
...
@@ -684,11 +684,12 @@ CREATE EVENT e1 ON SCHEDULE EVERY '1' SECOND COMMENT 'e_second_comment' DO DELET
...
@@ -684,11 +684,12 @@ CREATE EVENT e1 ON SCHEDULE EVERY '1' SECOND COMMENT 'e_second_comment' DO DELET
==========MASTER==========
==========MASTER==========
SHOW EVENTS;
SHOW EVENTS;
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
test_rpl e1 root@localhost
RECURRING NULL 1 SECOND # # ENABLED
test_rpl e1 root@localhost
SYSTEM RECURRING NULL 1 # # NULL ENABLED 1
==========SLAVE===========
==========SLAVE===========
USE test_rpl;
USE test_rpl;
SHOW EVENTS;
SHOW EVENTS;
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
test_rpl e1 @ SYSTEM RECURRING NULL 1 # # NULL SLAVESIDE_DISABLED 1
==========MASTER==========
==========MASTER==========
SELECT COUNT(*) FROM t1;
SELECT COUNT(*) FROM t1;
COUNT(*)
COUNT(*)
...
@@ -743,11 +744,12 @@ ALTER EVENT e1 RENAME TO e2;
...
@@ -743,11 +744,12 @@ ALTER EVENT e1 RENAME TO e2;
==========MASTER==========
==========MASTER==========
SHOW EVENTS;
SHOW EVENTS;
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
test_rpl e2 root@localhost
RECURRING NULL 1 SECOND # # ENABLED
test_rpl e2 root@localhost
SYSTEM RECURRING NULL 1 # # NULL ENABLED 1
==========SLAVE===========
==========SLAVE===========
USE test_rpl;
USE test_rpl;
SHOW EVENTS;
SHOW EVENTS;
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
test_rpl e2 @ SYSTEM RECURRING NULL 1 # # NULL SLAVESIDE_DISABLED 1
==========MASTER==========
==========MASTER==========
SELECT COUNT(*) FROM t1;
SELECT COUNT(*) FROM t1;
COUNT(*)
COUNT(*)
...
@@ -827,8 +829,9 @@ DELETE FROM t2;
...
@@ -827,8 +829,9 @@ DELETE FROM t2;
******************** SHOW BINLOG EVENTS ********************
******************** SHOW BINLOG EVENTS ********************
show binlog events from 1
02
;
show binlog events from 1;
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Format_desc 1 # Server ver: #
master-bin.000001 # Query 1 # CREATE DATABASE test_rpl
master-bin.000001 # Query 1 # CREATE DATABASE test_rpl
master-bin.000001 # Query 1 # use `test_rpl`; CREATE TABLE t1 (a int auto_increment not null, b char(254), PRIMARY KEY(a)) ENGINE=innodb
master-bin.000001 # Query 1 # use `test_rpl`; CREATE TABLE t1 (a int auto_increment not null, b char(254), PRIMARY KEY(a)) ENGINE=innodb
master-bin.000001 # Query 1 # use `test_rpl`; CREATE TABLE t2 (a int auto_increment not null, b char(254), PRIMARY KEY(a)) ENGINE=innodb
master-bin.000001 # Query 1 # use `test_rpl`; CREATE TABLE t2 (a int auto_increment not null, b char(254), PRIMARY KEY(a)) ENGINE=innodb
...
@@ -1011,6 +1014,9 @@ master-bin.000001 # Query 1 # use `test_rpl`; DROP TRIGGER tr1
...
@@ -1011,6 +1014,9 @@ master-bin.000001 # Query 1 # use `test_rpl`; DROP TRIGGER tr1
master-bin.000001 # Query 1 # use `test_rpl`; GRANT EVENT ON *.* TO 'root'@'localhost'
master-bin.000001 # Query 1 # use `test_rpl`; GRANT EVENT ON *.* TO 'root'@'localhost'
master-bin.000001 # Query 1 # use `test_rpl`; INSERT INTO t1 VALUES(1, 'test1')
master-bin.000001 # Query 1 # use `test_rpl`; INSERT INTO t1 VALUES(1, 'test1')
master-bin.000001 # Xid 1 # #
master-bin.000001 # Xid 1 # #
master-bin.000001 # Query 1 # use `test_rpl`; CREATE EVENT e1 ON SCHEDULE EVERY '1' SECOND COMMENT 'e_second_comment' DO DELETE FROM t1
master-bin.000001 # Query 1 # use `test_rpl`; ALTER EVENT e1 RENAME TO e2
master-bin.000001 # Query 1 # use `test_rpl`; DROP EVENT e2
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t1
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t1
master-bin.000001 # Xid 1 # #
master-bin.000001 # Xid 1 # #
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t2
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t2
...
...
mysql-test/suite/rpl/t/rpl_innodb_mixed_ddl.test
View file @
d1ac0825
...
@@ -5,9 +5,10 @@
...
@@ -5,9 +5,10 @@
# Requirements: define binlog format for mysqld as in example below:
# Requirements: define binlog format for mysqld as in example below:
# ./mysql-test-run.pl --mysqld=--binlog-format=mixed
# ./mysql-test-run.pl --mysqld=--binlog-format=mixed
#########################################
#########################################
--
source
include
/
have_binlog_format_mixed
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
let
$engine_type
=
innodb
;
let
$engine_type
=
innodb
;
--
source
suite
/
rpl
/
include
/
rpl_mixed_ddl
.
inc
--
source
suite
/
rpl
/
include
/
rpl_mixed_ddl
.
inc
# End 5.1 Test Case
mysql-test/suite/rpl/t/rpl_innodb_mixed_dml.test
View file @
d1ac0825
...
@@ -5,9 +5,10 @@
...
@@ -5,9 +5,10 @@
# Requirements: define binlog format for mysqld as in example below:
# Requirements: define binlog format for mysqld as in example below:
# ./mysql-test-run.pl --mysqld=--binlog-format=mixed
# ./mysql-test-run.pl --mysqld=--binlog-format=mixed
#########################################
#########################################
--
source
include
/
have_binlog_format_mixed
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
let
$engine_type
=
innodb
;
let
$engine_type
=
innodb
;
--
source
suite
/
rpl
/
include
/
rpl_mixed_dml
.
inc
--
source
suite
/
rpl
/
include
/
rpl_mixed_dml
.
inc
# End 5.1 Test Case
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