summaryrefslogtreecommitdiff
path: root/mysql-test/include/rpl_change_topology.inc
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2010-12-20 15:15:01 +0100
committerBjorn Munch <bjorn.munch@oracle.com>2010-12-20 15:15:01 +0100
commit004ae40bc051d4345e3267456af09cce3dd5d6f8 (patch)
tree115fdfba52045ba9a47ec7b397fb5ee4a7b5db4b /mysql-test/include/rpl_change_topology.inc
parentdd4c094652ef907af66704a4b02ed26ae1a79986 (diff)
parentf38e7844a28dcf8a2cc4995b45c68c2fd8544f72 (diff)
downloadmariadb-git-004ae40bc051d4345e3267456af09cce3dd5d6f8.tar.gz
Some if simplifications in tests
Diffstat (limited to 'mysql-test/include/rpl_change_topology.inc')
-rw-r--r--mysql-test/include/rpl_change_topology.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/mysql-test/include/rpl_change_topology.inc b/mysql-test/include/rpl_change_topology.inc
index d261f023acb..799262986e6 100644
--- a/mysql-test/include/rpl_change_topology.inc
+++ b/mysql-test/include/rpl_change_topology.inc
@@ -111,11 +111,11 @@ if (`SELECT '$rpl_topology' = '' OR '$rpl_server_count' = ''`)
--die You must set $rpl_topology and $rpl_server_count before you source rpl_change_topology.inc. If you really want to change to the empty topology, set $rpl_topology= none
}
--let $_rpl_topology= $rpl_topology
-if (`SELECT '$_rpl_topology' = 'none'`)
+if ($_rpl_topology == 'none')
{
--let $_rpl_topology=
}
-if (`SELECT '!$rpl_master_list!' = '!!'`)
+if ($rpl_master_list == '')
{
--die You must source include/rpl_init.inc before you source include/rpl_change_topology.inc
}
@@ -227,16 +227,13 @@ if (!$rpl_skip_change_master)
}
eval CHANGE MASTER TO MASTER_HOST = '127.0.0.1', MASTER_PORT = $_rpl_port, MASTER_USER = 'root', MASTER_LOG_FILE = '$_rpl_master_log_file'$_rpl_master_log_pos, MASTER_CONNECT_RETRY = 1;
}
- if (!$_rpl_master)
+ if ($_rpl_master == '')
{
- if (`SELECT '$_rpl_master' = ''`)
- {
# This un-configures the server so that it's not a slave.
# After BUG#28796, such configuration is not possible any more.
#--let $rpl_connection_name= server_$_rpl_server
#--source include/rpl_connection.inc
#CHANGE MASTER TO MASTER_HOST = '';
- }
}
--dec $_rpl_server
}