mirror of
https://github.com/MariaDB/server.git
synced 2026-05-11 09:30:23 +02:00
Moved semisync from a plugin to normal server
Part of MDEV-13073 AliSQL Optimize performance of semisync Did the following renames to match other similar variables key_ss_mutex_LOCK_binlog_ > key_LOCK_bing key_ss_cond_COND_binlog_send_ -> key_COND_binlog_send COND_binlog_send_ -> COND_binlog_send LOCK_binlog_ -> LOCK_binlog debian/mariadb-server-10.2.install does not install semisync libs.
This commit is contained in:
parent
77030649fb
commit
2e53b96a0a
38 changed files with 860 additions and 1189 deletions
|
|
@ -1,4 +0,0 @@
|
|||
if (`select count(*) < 2 from information_schema.plugins where plugin_name like 'rpl_semi_sync_%'`)
|
||||
{
|
||||
--skip Test requires semisync plugins
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
--plugin-load-add=$SEMISYNC_MASTER_SO
|
||||
--plugin-load-add=$SEMISYNC_SLAVE_SO
|
||||
--loose-rpl-semi-sync-master
|
||||
--loose-rpl-semi-sync-slave
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
#
|
||||
--let $include_filename= install_semisync.inc
|
||||
--source include/begin_include_file.inc
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_semisync_plugin.inc
|
||||
|
||||
--connection master
|
||||
|
||||
--disable_query_log
|
||||
--let $value = query_get_value(show variables like 'rpl_semi_sync_master_enabled', Value, 1)
|
||||
if ($value == No such row)
|
||||
{
|
||||
SET sql_log_bin = 0;
|
||||
install plugin rpl_semi_sync_master soname 'semisync_master';
|
||||
SET GLOBAL rpl_semi_sync_master_enabled = 1;
|
||||
SET sql_log_bin = 1;
|
||||
}
|
||||
--enable_query_log
|
||||
|
||||
--connection slave
|
||||
--source include/stop_slave_io.inc
|
||||
|
||||
--disable_query_log
|
||||
--let $value= query_get_value(show variables like 'rpl_semi_sync_slave_enabled', Value, 1)
|
||||
if ($value == No such row)
|
||||
{
|
||||
SET sql_log_bin = 0;
|
||||
install plugin rpl_semi_sync_slave soname 'semisync_slave';
|
||||
SET GLOBAL rpl_semi_sync_slave_enabled = 1;
|
||||
SET sql_log_bin = 1;
|
||||
}
|
||||
START SLAVE IO_THREAD;
|
||||
--source include/wait_for_slave_io_to_start.inc
|
||||
--enable_query_log
|
||||
|
||||
--source include/end_include_file.inc
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
#
|
||||
--let $include_filename= uninstall_semisync.inc
|
||||
--source include/begin_include_file.inc
|
||||
|
||||
--disable_query_log
|
||||
--connection slave
|
||||
--source include/stop_slave_io.inc
|
||||
|
||||
# Uninstall rpl_semi_sync_slave first
|
||||
--disable_warnings
|
||||
UNINSTALL PLUGIN rpl_semi_sync_slave;
|
||||
|
||||
--connection master
|
||||
# After BUG#17638477 fix, uninstallation of rpl_semi_sync_master
|
||||
# is not allowed when there are semi sync slaves. Hence kill
|
||||
# all dump threads before uninstalling it.
|
||||
SET GLOBAL rpl_semi_sync_master_enabled = OFF;
|
||||
--source include/stop_dump_threads.inc
|
||||
UNINSTALL PLUGIN rpl_semi_sync_master;
|
||||
--enable_warnings
|
||||
|
||||
--connection slave
|
||||
START SLAVE IO_THREAD;
|
||||
--source include/wait_for_slave_io_to_start.inc
|
||||
--enable_query_log
|
||||
|
||||
--source include/end_include_file.inc
|
||||
Loading…
Add table
Add a link
Reference in a new issue