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
f7f7e725
Commit
f7f7e725
authored
May 05, 2004
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
d15b0b57
d20230bc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
mysql-test/r/rpl_server_id2.result
mysql-test/r/rpl_server_id2.result
+1
-0
mysql-test/t/rpl_server_id2.test
mysql-test/t/rpl_server_id2.test
+4
-0
sql/slave.cc
sql/slave.cc
+3
-3
No files found.
mysql-test/r/rpl_server_id2.result
View file @
f7f7e725
...
@@ -18,4 +18,5 @@ select * from t1;
...
@@ -18,4 +18,5 @@ select * from t1;
n
n
1
1
1
1
stop slave;
drop table t1;
drop table t1;
mysql-test/t/rpl_server_id2.test
View file @
f7f7e725
...
@@ -18,4 +18,8 @@ insert into t1 values (1);
...
@@ -18,4 +18,8 @@ insert into t1 values (1);
save_master_pos
;
save_master_pos
;
sync_with_master
;
sync_with_master
;
select
*
from
t1
;
# check that indeed 2 were inserted
select
*
from
t1
;
# check that indeed 2 were inserted
# We stop the slave before cleaning up otherwise we'll get
# 'drop table t1' executed twice, so an error in the slave.err
# (not critical).
stop
slave
;
drop
table
t1
;
drop
table
t1
;
sql/slave.cc
View file @
f7f7e725
...
@@ -2366,9 +2366,9 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
...
@@ -2366,9 +2366,9 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
*/
*/
/*
/*
TODO: when this is merged into 4.1, one needs to update queue_event() to
In 4.1, we updated queue_event() to add a similar test for
add a similar test for replicate_same_server_id, because in 4.1 the I/O
replicate_same_server_id, because in 4.1 the I/O thread is also filtering
thread is also filtering
events based on the server id.
events based on the server id.
*/
*/
if
((
ev
->
server_id
==
(
uint32
)
::
server_id
&&
!
replicate_same_server_id
)
||
if
((
ev
->
server_id
==
(
uint32
)
::
server_id
&&
!
replicate_same_server_id
)
||
(
rli
->
slave_skip_counter
&&
type_code
!=
ROTATE_EVENT
))
(
rli
->
slave_skip_counter
&&
type_code
!=
ROTATE_EVENT
))
...
...
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