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
f48aa05f
Commit
f48aa05f
authored
Mar 14, 2008
by
mkindahl@dl145h.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mkindahl@bk-internal.mysql.com:/home/bk/mysql-5.1-new-rpl
into dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl
parents
38b406ce
c5fefc68
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
107 additions
and
26 deletions
+107
-26
mysql-test/extra/rpl_tests/rpl_loaddata.test
mysql-test/extra/rpl_tests/rpl_loaddata.test
+0
-7
mysql-test/extra/rpl_tests/rpl_log.test
mysql-test/extra/rpl_tests/rpl_log.test
+1
-1
mysql-test/suite/rpl/r/rpl_loaddata.result
mysql-test/suite/rpl/r/rpl_loaddata.result
+0
-3
mysql-test/suite/rpl/r/rpl_master_pos_wait.result
mysql-test/suite/rpl/r/rpl_master_pos_wait.result
+6
-0
mysql-test/suite/rpl/r/rpl_skip_error.result
mysql-test/suite/rpl/r/rpl_skip_error.result
+59
-3
mysql-test/suite/rpl/t/rpl_master_pos_wait.test
mysql-test/suite/rpl/t/rpl_master_pos_wait.test
+11
-0
mysql-test/suite/rpl/t/rpl_skip_error.test
mysql-test/suite/rpl/t/rpl_skip_error.test
+23
-7
mysql-test/suite/rpl/t/rpl_slave_status.test
mysql-test/suite/rpl/t/rpl_slave_status.test
+3
-2
mysql-test/suite/rpl/t/rpl_temporary.test
mysql-test/suite/rpl/t/rpl_temporary.test
+3
-2
sql/rpl_rli.cc
sql/rpl_rli.cc
+1
-1
No files found.
mysql-test/extra/rpl_tests/rpl_loaddata.test
View file @
f48aa05f
...
...
@@ -39,13 +39,6 @@ sync_with_master;
select
*
from
t1
;
select
*
from
t3
;
# We want to be sure that LOAD DATA is in the slave's binlog.
# But we can't simply read this binlog, because as the slave has not been
# restarted for this test, the file_id is uncertain (would cause test
# failures). So instead, we test if the binlog looks long enough to
# contain LOAD DATA. Since 5.0.3 we assume that binlog of 1292 is ok.
# If LOAD DATA was not logged, the binlog would be shorter.
show
master
status
;
connection
master
;
...
...
mysql-test/extra/rpl_tests/rpl_log.test
View file @
f48aa05f
...
...
@@ -148,5 +148,5 @@ drop table t1;
# End of 4.1 tests
sync_with_master
;
sync_
slave_
with_master
;
mysql-test/suite/rpl/r/rpl_loaddata.result
View file @
f48aa05f
...
...
@@ -26,9 +26,6 @@ day id category name
2003-02-22 2461 b a a a @ % ' " a
2003-03-22 2161 c asdf
2003-03-22 2416 a bbbbb
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
slave-bin.000001 1280
drop table t1;
drop table t2;
drop table t3;
...
...
mysql-test/suite/rpl/r/rpl_master_pos_wait.result
View file @
f48aa05f
...
...
@@ -16,3 +16,9 @@ select master_pos_wait('master-bin.999999',0);
stop slave sql_thread;
master_pos_wait('master-bin.999999',0)
NULL
"*** must be empty ***"
show slave status;
"*** must be NULL ***"
select master_pos_wait('foo', 98);
master_pos_wait('foo', 98)
NULL
mysql-test/suite/rpl/r/rpl_skip_error.result
View file @
f48aa05f
...
...
@@ -13,18 +13,18 @@ insert into t1 values (1);
insert into t1 values (1);
insert into t1 values (2),(3);
[on slave]
select * from t1
ORDER BY
n;
select * from t1
order by
n;
n
1
2
3
==== Test With sql_mode=strict_trans_tables ====
insert into t1 values (7),
(8);
insert into t1 values (7),(8);
[on master]
set sql_mode=strict_trans_tables;
insert into t1 values (7), (8), (9);
[on slave]
select * from t1;
select * from t1
order by n
;
n
1
2
...
...
@@ -72,3 +72,59 @@ Last_SQL_Errno 0
Last_SQL_Error
==== Clean Up ====
drop table t1;
create table t1(a int primary key);
insert into t1 values (1),(2);
delete from t1 where @@server_id=1;
Warnings:
Warning 1592 Statement is not safe to log in statement format.
set sql_mode=strict_trans_tables;
insert into t1 values (7), (8), (9);
[on slave]
select * from t1;
a
1
2
7
8
9
SHOW SLAVE STATUS;
Slave_IO_State #
Master_Host 127.0.0.1
Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos #
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
Slave_IO_Running Yes
Slave_SQL_Running Yes
Replicate_Do_DB
Replicate_Ignore_DB
Replicate_Do_Table
Replicate_Ignore_Table #
Replicate_Wild_Do_Table
Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos #
Relay_Log_Space #
Until_Condition None
Until_Log_File
Until_Log_Pos 0
Master_SSL_Allowed No
Master_SSL_CA_File
Master_SSL_CA_Path
Master_SSL_Cert
Master_SSL_Cipher
Master_SSL_Key
Seconds_Behind_Master #
Master_SSL_Verify_Server_Cert No
Last_IO_Errno #
Last_IO_Error #
Last_SQL_Errno 0
Last_SQL_Error
==== Clean Up ====
drop table t1;
mysql-test/suite/rpl/t/rpl_master_pos_wait.test
View file @
f48aa05f
...
...
@@ -15,4 +15,15 @@ stop slave sql_thread;
connection
slave
;
reap
;
#
# bug#26622 MASTER_POS_WAIT does not work as documented
#
connection
master
;
echo
"*** must be empty ***"
;
query_vertical
show
slave
status
;
echo
"*** must be NULL ***"
;
select
master_pos_wait
(
'foo'
,
98
);
# End of 4.1 tests
mysql-test/suite/rpl/t/rpl_skip_error.test
View file @
f48aa05f
...
...
@@ -18,7 +18,7 @@
# bug in this test: BUG#30594: rpl.rpl_skip_error is nondeterministic
source
include
/
master
-
slave
.
inc
;
source
include
/
have_binlog_format_
mixed_or_
statement
.
inc
;
source
include
/
have_binlog_format_statement
.
inc
;
--
echo
====
Test
Without
sql_mode
=
strict_trans_tables
====
...
...
@@ -37,17 +37,34 @@ insert into t1 values (1);
# These should work fine
insert
into
t1
values
(
2
),(
3
);
--
echo
[
on
slave
]
sync_slave_with_master
;
select
*
from
t1
ORDER
BY
n
;
--
echo
[
on
slave
]
select
*
from
t1
order
by
n
;
--
echo
====
Test
With
sql_mode
=
strict_trans_tables
====
insert
into
t1
values
(
7
),(
8
);
--
echo
[
on
master
]
connection
master
;
set
sql_mode
=
strict_trans_tables
;
insert
into
t1
values
(
7
),
(
8
),
(
9
);
--
echo
[
on
slave
]
sync_slave_with_master
;
select
*
from
t1
order
by
n
;
source
include
/
show_slave_status2
.
inc
;
insert
into
t1
values
(
7
),
(
8
);
--
echo
====
Clean
Up
====
connection
master
;
drop
table
t1
;
sync_slave_with_master
;
# End of 4.1 tests
--
echo
[
on
master
]
#
# #28839 Errors in strict mode silently stop SQL thread if --slave-skip-errors exists
#
connection
master
;
create
table
t1
(
a
int
primary
key
);
insert
into
t1
values
(
1
),(
2
);
delete
from
t1
where
@@
server_id
=
1
;
set
sql_mode
=
strict_trans_tables
;
insert
into
t1
values
(
7
),
(
8
),
(
9
);
...
...
@@ -62,5 +79,4 @@ source include/show_slave_status2.inc;
connection
master
;
drop
table
t1
;
sync_slave_with_master
;
# End of 5.0 tests
mysql-test/suite/rpl/t/rpl_slave_status.test
View file @
f48aa05f
...
...
@@ -50,9 +50,10 @@ show slave status;
connection
slave
;
drop
table
t1
;
delete
from
mysql
.
user
where
user
=
'rpl'
;
# cleanup: slave io thread has been stopped "irrecoverably"
# so we clean up mess manually
connection
master
;
drop
table
t1
;
# end of test case for BUG#10780
# end of 4.1 tests
mysql-test/suite/rpl/t/rpl_temporary.test
View file @
f48aa05f
...
...
@@ -132,7 +132,7 @@ drop table t1,t2;
# don't get any memory leaks for this
create
temporary
table
t3
(
f
int
);
sync_with_master
;
sync_
slave_
with_master
;
# The server will now close done
...
...
@@ -143,7 +143,8 @@ sync_with_master;
connection
master
;
create
temporary
table
t4
(
f
int
);
create
table
t5
(
f
int
);
sync_with_master
;
sync_slave_with_master
;
connection
master
;
# find dumper's $id
select
id
from
information_schema
.
processlist
where
command
=
'Binlog Dump'
into
@
id
;
kill
@
id
;
# to stimulate reconnection by slave w/o timeout
...
...
sql/rpl_rli.cc
View file @
f48aa05f
...
...
@@ -615,7 +615,7 @@ int Relay_log_info::wait_for_pos(THD* thd, String* log_name,
DBUG_ENTER
(
"Relay_log_info::wait_for_pos"
);
if
(
!
inited
)
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
2
);
DBUG_PRINT
(
"enter"
,(
"log_name: '%s' log_pos: %lu timeout: %lu"
,
log_name
->
c_ptr
(),
(
ulong
)
log_pos
,
(
ulong
)
timeout
));
...
...
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