mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
BUG#17460821
Automerged from mysql-5.5 bug branch into latest mysql-5.5.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user