diff options
author | unknown <magnus@neptunus.(none)> | 2004-04-15 17:30:50 +0200 |
---|---|---|
committer | unknown <magnus@neptunus.(none)> | 2004-04-15 17:30:50 +0200 |
commit | e19deec1bc92126f86bb2246ceabdeace548e202 (patch) | |
tree | 9581be502cea810ad38cb08e25e5fd617e99b45f /mysql-test/mysql-test-run.sh | |
parent | 689d0a0ad571ac8185c0df799ac65b8b34f3ea48 (diff) | |
download | mariadb-git-e19deec1bc92126f86bb2246ceabdeace548e202.tar.gz |
Fix mysql-test-run to work better with NDB
Fix broken string constant in mysqld.cc
mysql-test/mysql-test-run.sh:
Don't enable NDB when the slave mysqld is started
Remove the ndbcluster dir from var/ when restarting test
Set datadir for NDB to @MYSQL_TEST_DIR/var so that ndbcluster dir is created there. Otherwise it will appear as a database in mysqld.
sql/mysqld.cc:
The string was broken in two lines and failed to compile on some compiler.
Remove ifdefs around OPT_NDBCLUSTER, it should always be available even when not supported.
Diffstat (limited to 'mysql-test/mysql-test-run.sh')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index 67a0f8cd509..bdacd6c10b9 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -1040,7 +1040,7 @@ start_slave() --core --init-rpl-role=slave \ --tmpdir=$MYSQL_TMP_DIR \ --language=$LANGUAGE \ - --skip-innodb --skip-slave-start \ + --skip-innodb --skip-ndb --skip-slave-start \ --slave-load-tmpdir=$SLAVE_LOAD_TMPDIR \ --report-host=127.0.0.1 --report-user=root \ --report-port=$slave_port \ @@ -1421,6 +1421,7 @@ then fi # Remove files that can cause problems + $RM -rf $MYSQL_TEST_DIR/var/ndbcluster $RM -f $MYSQL_TEST_DIR/var/run/* $MYSQL_TEST_DIR/var/tmp/* # Remove old berkeley db log files that can confuse the server @@ -1436,7 +1437,7 @@ then if [ -z "$USE_RUNNING_NDBCLUSTER" ] then echo "Starting ndbcluster" - ./ndb/install_ndbcluster --initial --data-dir=$MASTER_MYDDIR || exit 1 + ./ndb/install_ndbcluster --initial --data-dir=$MYSQL_TEST_DIR/var || exit 1 export NDB_CONNECTSTRING=`cat Ndb.cfg` else export NDB_CONNECTSTRING="$USE_RUNNING_NDBCLUSTER" |