summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonty@bitch.mysql.fi <>2001-11-30 00:48:26 +0200
committermonty@bitch.mysql.fi <>2001-11-30 00:48:26 +0200
commit9a17c068b5aa138838cb845f7073d80bef25ebe4 (patch)
tree5e5a501e0abf62fb594659620cc0b11619c35a74
parent76ed6c26fcd3f85c720d4aa4b77d39accb409be9 (diff)
downloadmariadb-git-9a17c068b5aa138838cb845f7073d80bef25ebe4.tar.gz
Removed purify warning
Remove temporary files before starting mysql-test
-rw-r--r--innobase/pars/pars0opt.c3
-rw-r--r--mysql-test/mysql-test-run.sh4
2 files changed, 6 insertions, 1 deletions
diff --git a/innobase/pars/pars0opt.c b/innobase/pars/pars0opt.c
index 35d39caad00..3c378ec8ba2 100644
--- a/innobase/pars/pars0opt.c
+++ b/innobase/pars/pars0opt.c
@@ -373,7 +373,8 @@ opt_calc_index_goodness(
}
}
- if (index->type & DICT_CLUSTERED) {
+ /* We have to test for goodness here, as last_op may note be set */
+ if (goodness && index->type & DICT_CLUSTERED) {
goodness++;
}
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index 13548be834c..26d2af244ea 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -653,7 +653,11 @@ start_master()
$RM -f $MASTER_MYDDIR/log.*
# Remove stale binary logs
$RM -f $MYSQL_TEST_DIR/var/log/master-bin.*
+ # Remove files that can cause problems
+ $RM -f $MYSQL_TEST_DIR/var/run/* $MYSQL_TEST_DIR/var/tmp/*
+
#run master initialization shell script if one exists
+
if [ -f "$master_init_script" ] ;
then
/bin/sh $master_init_script