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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
77c41fa7
Commit
77c41fa7
authored
Aug 23, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small cleanup of rpl.rpl_stop_slave
parent
f753480c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
mysql-test/suite/rpl/r/rpl_stop_slave.result
mysql-test/suite/rpl/r/rpl_stop_slave.result
+4
-2
mysql-test/suite/rpl/t/rpl_stop_slave.test
mysql-test/suite/rpl/t/rpl_stop_slave.test
+6
-6
No files found.
mysql-test/suite/rpl/r/rpl_stop_slave.result
View file @
77c41fa7
...
@@ -15,7 +15,8 @@ include/stop_slave.inc
...
@@ -15,7 +15,8 @@ include/stop_slave.inc
# Suspend the INSERT statement in current transaction on SQL thread.
# Suspend the INSERT statement in current transaction on SQL thread.
# It guarantees that SQL thread is applying the transaction when
# It guarantees that SQL thread is applying the transaction when
# STOP SLAVE command launchs.
# STOP SLAVE command launchs.
SET GLOBAL debug_dbug= '+d,after_mysql_insert,*';
set @old_debug=@@global.debug;
set global debug_dbug= '+d,after_mysql_insert';
include/start_slave.inc
include/start_slave.inc
# CREATE TEMPORARY TABLE with InnoDB engine
# CREATE TEMPORARY TABLE with InnoDB engine
...
@@ -98,7 +99,8 @@ connection slave;
...
@@ -98,7 +99,8 @@ connection slave;
include/stop_slave.inc
include/stop_slave.inc
connection master;
connection master;
include/stop_dump_threads.inc
include/stop_dump_threads.inc
SET GLOBAL debug_dbug= '+d,dump_thread_wait_before_send_xid,*';
set @old_debug=@@global.debug;
set global debug_dbug= '+d,dump_thread_wait_before_send_xid';
connection slave;
connection slave;
include/start_slave.inc
include/start_slave.inc
BEGIN;
BEGIN;
...
...
mysql-test/suite/rpl/t/rpl_stop_slave.test
View file @
77c41fa7
...
@@ -22,8 +22,8 @@ source include/stop_slave.inc;
...
@@ -22,8 +22,8 @@ source include/stop_slave.inc;
--
echo
# Suspend the INSERT statement in current transaction on SQL thread.
--
echo
# Suspend the INSERT statement in current transaction on SQL thread.
--
echo
# It guarantees that SQL thread is applying the transaction when
--
echo
# It guarantees that SQL thread is applying the transaction when
--
echo
# STOP SLAVE command launchs.
--
echo
# STOP SLAVE command launchs.
let
$debug_save
=
`SELECT @@GLOBAL.debug`
;
set
@
old_debug
=@@
global
.
debug
;
SET
GLOBAL
debug_dbug
=
'+d,after_mysql_insert,*
'
;
set
global
debug_dbug
=
'+d,after_mysql_insert
'
;
source
include
/
start_slave
.
inc
;
source
include
/
start_slave
.
inc
;
--
echo
--
echo
...
@@ -45,7 +45,7 @@ source extra/rpl_tests/rpl_stop_slave.test;
...
@@ -45,7 +45,7 @@ source extra/rpl_tests/rpl_stop_slave.test;
--
echo
--
echo
--
echo
# Test end
--
echo
# Test end
--
disable_query_log
--
disable_query_log
eval
SET
GLOBAL
debug_dbug
=
'$debug_save'
;
set
global
debug_dbug
=
@
old_debug
;
--
enable_query_log
--
enable_query_log
source
include
/
restart_slave_sql
.
inc
;
source
include
/
restart_slave_sql
.
inc
;
...
@@ -79,8 +79,8 @@ connection master;
...
@@ -79,8 +79,8 @@ connection master;
# make sure that there are no zombie threads
# make sure that there are no zombie threads
--
source
include
/
stop_dump_threads
.
inc
--
source
include
/
stop_dump_threads
.
inc
let
$debug_save
=
`SELECT @@GLOBAL.debug`
;
set
@
old_debug
=@@
global
.
debug
;
SET
GLOBAL
debug_dbug
=
'+d,dump_thread_wait_before_send_xid,*
'
;
set
global
debug_dbug
=
'+d,dump_thread_wait_before_send_xid
'
;
connection
slave
;
connection
slave
;
--
source
include
/
start_slave
.
inc
--
source
include
/
start_slave
.
inc
...
@@ -127,7 +127,7 @@ reap;
...
@@ -127,7 +127,7 @@ reap;
# that would set the dump thread to wait
# that would set the dump thread to wait
connection
master
;
connection
master
;
--
disable_query_log
--
disable_query_log
eval
SET
GLOBAL
debug_dbug
=
'$debug_save'
;
set
global
debug_dbug
=
@
old_debug
;
--
enable_query_log
--
enable_query_log
# make sure that there are no zombie threads
# make sure that there are no zombie threads
--
source
include
/
stop_dump_threads
.
inc
--
source
include
/
stop_dump_threads
.
inc
...
...
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