mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-4254 Semisync plugins to link statically into MariaDB
fix semisync plugins and tests to work with both with static and dynamic linking
This commit is contained in:
4
mysql-test/include/have_semisync.inc
Normal file
4
mysql-test/include/have_semisync.inc
Normal file
@ -0,0 +1,4 @@
|
||||
if (`select count(*) < 2 from information_schema.plugins where plugin_name like 'rpl_semi_sync_%'`)
|
||||
{
|
||||
--skip Test requires semisync plugins
|
||||
}
|
4
mysql-test/include/have_semisync.opt
Normal file
4
mysql-test/include/have_semisync.opt
Normal file
@ -0,0 +1,4 @@
|
||||
--plugin-load=$SEMISYNC_MASTER_SO
|
||||
--plugin-load=$SEMISYNC_SLAVE_SO
|
||||
--loose-rpl-semi-sync-master
|
||||
--loose-rpl-semi-sync-slave
|
@ -1,15 +0,0 @@
|
||||
#
|
||||
# Check if server has support for loading plugins
|
||||
#
|
||||
if (`SELECT @@have_dynamic_loading != 'YES'`) {
|
||||
--skip Requires dynamic loading
|
||||
}
|
||||
|
||||
#
|
||||
# Check if the variable SEMISYNC_MASTER_SO is set
|
||||
#
|
||||
if (!$SEMISYNC_MASTER_SO)
|
||||
{
|
||||
skip Need semisync plugins;
|
||||
}
|
||||
|
Reference in New Issue
Block a user