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
9d6bf69a
Commit
9d6bf69a
authored
Jun 26, 2009
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
local merge: 5.1-bt bug branch --> 5.1-bt latest
parents
a03275e9
b5371583
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
mysql-test/extra/rpl_tests/rpl_reset_slave.test
mysql-test/extra/rpl_tests/rpl_reset_slave.test
+2
-2
mysql-test/include/wait_for_slave_io_error.inc
mysql-test/include/wait_for_slave_io_error.inc
+23
-0
No files found.
mysql-test/extra/rpl_tests/rpl_reset_slave.test
View file @
9d6bf69a
...
@@ -58,7 +58,7 @@ echo *** errno must be zero: $last_io_errno ***;
...
@@ -58,7 +58,7 @@ echo *** errno must be zero: $last_io_errno ***;
change
master
to
master_user
=
'impossible_user_name'
;
change
master
to
master_user
=
'impossible_user_name'
;
start
slave
;
start
slave
;
source
include
/
wait_for_slave_io_
to_stop
.
inc
;
source
include
/
wait_for_slave_io_
error
.
inc
;
let
$last_io_errno
=
query_get_value
(
SHOW
SLAVE
STATUS
,
Last_IO_Errno
,
1
);
let
$last_io_errno
=
query_get_value
(
SHOW
SLAVE
STATUS
,
Last_IO_Errno
,
1
);
--
disable_query_log
--
disable_query_log
eval
SELECT
$last_io_errno
>
0
as
ONE
;
eval
SELECT
$last_io_errno
>
0
as
ONE
;
...
@@ -79,7 +79,7 @@ let $last_io_error= query_get_value(SHOW SLAVE STATUS, Last_IO_Error, 1);
...
@@ -79,7 +79,7 @@ let $last_io_error= query_get_value(SHOW SLAVE STATUS, Last_IO_Error, 1);
source
include
/
stop_slave
.
inc
;
source
include
/
stop_slave
.
inc
;
change
master
to
master_user
=
'impossible_user_name'
;
change
master
to
master_user
=
'impossible_user_name'
;
start
slave
;
start
slave
;
source
include
/
wait_for_slave_io_
to_stop
.
inc
;
source
include
/
wait_for_slave_io_
error
.
inc
;
let
$last_io_errno
=
query_get_value
(
SHOW
SLAVE
STATUS
,
Last_IO_Errno
,
1
);
let
$last_io_errno
=
query_get_value
(
SHOW
SLAVE
STATUS
,
Last_IO_Errno
,
1
);
--
disable_query_log
--
disable_query_log
eval
SELECT
$last_io_errno
>
0
as
ONE
;
eval
SELECT
$last_io_errno
>
0
as
ONE
;
...
...
mysql-test/include/wait_for_slave_io_error.inc
0 → 100644
View file @
9d6bf69a
# ==== Purpose ====
#
# Waits until the IO thread of the current connection has got an
# error, or until a timeout is reached.
#
# ==== Usage ====
#
# source include/wait_for_slave_io_error.inc;
#
# Parameters to this macro are $slave_timeout and
# $slave_keep_connection. See wait_for_slave_param.inc for
# descriptions.
let
$old_slave_param_comparison
=
$slave_param_comparison
;
let
$slave_param
=
Last_IO_Errno
;
let
$slave_param_comparison
=
!=
;
let
$slave_param_value
=
0
;
let
$slave_error_message
=
Failed
while
waiting
for
slave
to
produce
an
error
in
its
sql
thread
;
source
include
/
wait_for_slave_param
.
inc
;
let
$slave_error_message
=
;
let
$slave_param_comparison
=
$old_slave_param_comparison
;
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