diff options
author | unknown <msvensson@pilot.(none)> | 2007-06-01 14:32:26 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-06-01 14:32:26 +0200 |
commit | 38f0d480f9131eab211c93d95af5af18dc790a8b (patch) | |
tree | 2e3d61a38d292848f26c662ab2531eded781dd24 /mysql-test/lib/mtr_process.pl | |
parent | 288a7fc0c9f145f1d27c0b2bd101f61c54c1d4c1 (diff) | |
download | mariadb-git-38f0d480f9131eab211c93d95af5af18dc790a8b.tar.gz |
Bug #24168 mysql-test-run not functioning in autotest (cannot use external cluster)
- Removed the global variable(s) glob_use_running_cluster/slave
and put a property on each "cluster" called "use_running" which
is set to 1 if user passed either ndb_connectstring or
ndb_connectstring_slave. Thus mtr.pl should not start/stop the
cluster.
mysql-test/lib/mtr_process.pl:
Removed the global variable(s) glob_use_running_cluster/slave
and put a property on each "cluster" called "use_running" which
is set to 1 if user passed either ndb_connectstring or
ndb_connectstring_slave. Thus mtr.pl should not start/stop the
cluster
mysql-test/mysql-test-run.pl:
Removed the global variable(s) glob_use_running_cluster/slave
and put a property on each "cluster" called "use_running" which
is set to 1 if user passed either ndb_connectstring or
ndb_connectstring_slave. Thus mtr.pl should not start/stop the
cluster
Diffstat (limited to 'mysql-test/lib/mtr_process.pl')
-rw-r--r-- | mysql-test/lib/mtr_process.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mysql-test/lib/mtr_process.pl b/mysql-test/lib/mtr_process.pl index ac2e049a67c..8e69a883e0b 100644 --- a/mysql-test/lib/mtr_process.pl +++ b/mysql-test/lib/mtr_process.pl @@ -385,11 +385,13 @@ sub mtr_kill_leftovers () { if ( ! $::opt_skip_ndbcluster ) { - # Start shutdown of clusters. - mtr_debug("Shutting down cluster..."); foreach my $cluster (@{$::clusters}) { + + # Don't shut down a "running" cluster + next if $cluster->{'use_running'}; + mtr_debug(" - cluster " . "(pid: $cluster->{pid}; " . "pid file: '$cluster->{path_pid})"); |