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
6fd6b38c
Commit
6fd6b38c
authored
Oct 18, 2013
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
BUG#17460821
Automerged from mysql-5.5 bug branch into latest mysql-5.5.
parents
94630ddd
863d67e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
plugin/semisync/semisync_master.cc
plugin/semisync/semisync_master.cc
+11
-7
No files found.
plugin/semisync/semisync_master.cc
View file @
6fd6b38c
...
...
@@ -482,13 +482,17 @@ void ReplSemiSyncMaster::remove_slave()
lock
();
rpl_semi_sync_master_clients
--
;
/* If user has chosen not to wait if no semi-sync slave available
and the last semi-sync slave exits, turn off semi-sync on master
immediately.
*/
if
(
!
rpl_semi_sync_master_wait_no_slave
&&
rpl_semi_sync_master_clients
==
0
)
switch_off
();
/* Only switch off if semi-sync is enabled and is on */
if
(
getMasterEnabled
()
&&
is_on
())
{
/* If user has chosen not to wait if no semi-sync slave available
and the last semi-sync slave exits, turn off semi-sync on master
immediately.
*/
if
(
!
rpl_semi_sync_master_wait_no_slave
&&
rpl_semi_sync_master_clients
==
0
)
switch_off
();
}
unlock
();
}
...
...
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