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
dab1162b
Commit
dab1162b
authored
Oct 12, 2009
by
He Zhenxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport post fix for semisync
Remove functions that no longer needed Fix warning suppressions
parent
b92ec529
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
24 deletions
+9
-24
mysql-test/suite/rpl/t/rpl_semi_sync.test
mysql-test/suite/rpl/t/rpl_semi_sync.test
+9
-9
plugin/semisync/semisync_slave.cc
plugin/semisync/semisync_slave.cc
+0
-10
plugin/semisync/semisync_slave.h
plugin/semisync/semisync_slave.h
+0
-5
No files found.
mysql-test/suite/rpl/t/rpl_semi_sync.test
View file @
dab1162b
...
...
@@ -7,21 +7,21 @@ source include/master-slave.inc;
let
$engine_type
=
InnoDB
;
#let $engine_type= MyISAM;
# After fix of BUG#45848, semi-sync slave should not create any extra
# connections on master, save the count of connections before start
# semi-sync slave for comparison below.
let
$_connections_normal_slave
=
query_get_value
(
SHOW
STATUS
LIKE
'Threads_connected'
,
Value
,
1
);
# Suppress warnings that might be generated during the test
disable_query_log
;
connection
master
;
call
mtr
.
add_suppression
(
"Timeout waiting for reply of binlog"
);
call
mtr
.
add_suppression
(
"Read semi-sync reply"
);
connection
slave
;
call
mtr
.
add_suppression
(
"Master server does not support"
);
# These will be removed after fix bug#45852
call
mtr
.
add_suppression
(
"Set 'rpl_semi_sync_master_reply_log_file_pos' on master failed"
);
call
mtr
.
add_suppression
(
"Slave I/O: Fatal error: Failed to run 'after_queue_event' hook, Error_code: 1593"
);
call
mtr
.
add_suppression
(
"Master server does not support semi-sync"
);
call
mtr
.
add_suppression
(
"Semi-sync slave .* reply"
);
enable_query_log
;
connection
master
;
# After fix of BUG#45848, semi-sync slave should not create any extra
# connections on master, save the count of connections before start
# semi-sync slave for comparison below.
let
$_connections_normal_slave
=
query_get_value
(
SHOW
STATUS
LIKE
'Threads_connected'
,
Value
,
1
);
--
echo
#
--
echo
# Uninstall semi-sync plugins on master and slave
...
...
plugin/semisync/semisync_slave.cc
View file @
dab1162b
...
...
@@ -39,16 +39,6 @@ int ReplSemiSyncSlave::initObject()
return
result
;
}
int
ReplSemiSyncSlave
::
slaveReplyConnect
()
{
if
(
!
mysql_reply
&&
!
(
mysql_reply
=
rpl_connect_master
(
NULL
)))
{
sql_print_error
(
"Semisync slave connect to master for reply failed"
);
return
1
;
}
return
0
;
}
int
ReplSemiSyncSlave
::
slaveReadSyncHeader
(
const
char
*
header
,
unsigned
long
total_len
,
bool
*
need_reply
,
...
...
plugin/semisync/semisync_slave.h
View file @
dab1162b
...
...
@@ -77,11 +77,6 @@ class ReplSemiSyncSlave
int
slaveReply
(
MYSQL
*
mysql
,
const
char
*
binlog_filename
,
my_off_t
binlog_filepos
);
/*
Connect to master for sending reply
*/
int
slaveReplyConnect
();
int
slaveStart
(
Binlog_relay_IO_param
*
param
);
int
slaveStop
(
Binlog_relay_IO_param
*
param
);
...
...
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