diff options
author | unknown <monty@hundin.mysql.fi> | 2001-08-18 14:24:01 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-08-18 14:24:01 +0300 |
commit | a14d63ba6e6b9ee411ac576e513fa31f652138e6 (patch) | |
tree | 185409a9024f800dcf89ef564b4baaccbaa1c5b2 /Build-tools | |
parent | b82ec23adc4040e195e75fb5564cedc74df19e1d (diff) | |
download | mariadb-git-a14d63ba6e6b9ee411ac576e513fa31f652138e6.tar.gz |
Fix for handling of floats inside val_int() of +, - * and /.
Build-tools/Do-compile:
Make shutdown safer
Docs/manual.texi:
Fix of bad merge
sql/log.cc:
cleanup
sql/sql_acl.cc:
cleanup
Diffstat (limited to 'Build-tools')
-rwxr-xr-x | Build-tools/Do-compile | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/Build-tools/Do-compile b/Build-tools/Do-compile index 78b06ed04f3..6f9854a0792 100755 --- a/Build-tools/Do-compile +++ b/Build-tools/Do-compile @@ -68,17 +68,20 @@ delete $ENV{'MY_BASEDIR_VERSION'}; $ENV{'MYSQL_TCP_PORT'}= $mysql_tcp_port= 3334 + $opt_build_thread; $ENV{'MYSQL_UNIX_PORT'}=$mysql_unix_port="$opt_tmp/mysql$opt_suffix.build"; $ENV{"PERL5LIB"}="$pwd/$host/perl5:$pwd/$host/perl5/site_perl"; +$slave_port=$mysql_tcp_port+16; + +if (-x "$host/bin/mysqladmin") +{ + log_system("$host/bin/mysqladmin --no-defaults -u root -S $mysql_unix_port -s shutdown"); + log_system("$host/bin/mysqladmin --no-defaults -u root -P $mysql_tcp_port -h $host -s shutdown"); + log_system("$host/bin/mysqladmin --no-defaults -u root -P $slave_port -h $host -s shutdown"); + log_system("$host/bin/mysqladmin --no-defaults -u root -P 9306 -h $host -s shutdown"); + log_system("$host/bin/mysqladmin --no-defaults -u root -P 9307 -h $host -s shutdown"); +} if ($opt_stage == 0) { print "$host: Removing old distribution\n" if ($opt_debug); - if (-x "$host/bin/mysqladmin") - { - log_system("$host/bin/mysqladmin --no-defaults -u root -S $mysql_unix_port -s shutdown"); - log_system("$host/bin/mysqladmin --no-defaults -u root -P $mysql_tcp_port -h $host -s shutdown"); - log_system("$host/bin/mysqladmin --no-defaults -u root -P 9306 -h $host -s shutdown"); - log_system("$host/bin/mysqladmin --no-defaults -u root -P 9307 -h $host -s shutdown"); - } if (!$opt_use_old_distribution) { system("mkdir $host") if (! -d $host); @@ -86,7 +89,6 @@ if ($opt_stage == 0) rm_all(<$host/mysql-*>); system("mkdir $host/bin") if (! -d "$host/bin"); } - system("mkdir $bench_tmpdir") if (! -d $bench_tmpdir); rm_all("$host/test"); system("mkdir $host/test") if (! -d "$host/test"); system("mkdir Logs") if (! -d "Logs"); @@ -184,13 +186,14 @@ $ENV{"LD_LIBRARY_PATH"}= "$testdir/lib:" . $ENV{"LD_LIBRARY_PATH"}; if ($opt_stage <= 5 && !$opt_no_test && !$opt_no_mysqltest) { - my ($slave_port); - $slave_port=$mysql_tcp_port+16; + system("mkdir $bench_tmpdir") if (! -d $bench_tmpdir); safe_cd("${test_dir}/mysql-test"); check_system("./mysql-test-run --tmpdir=$bench_tmpdir --master_port=$mysql_tcp_port --slave_port=$slave_port --sleep=10", "tests were successful"); } -if ($opt_stage <= 6 && !$opt_no_test) +# Start the server if we are going to run any of the benchmarks + +if (!$opt_no_test) { my $extra; safe_cd($test_dir); @@ -207,10 +210,11 @@ if ($opt_stage <= 6 && !$opt_no_test) { $extra.=" --innodb_data_file_path=ibdata1:100M"; } - safe_system("./bin/mysqld --no-defaults --basedir . --datadir ./data --skip-locking $extra >> $log 2>&1 &"); + safe_system("./bin/mysqld --no-defaults --basedir . --datadir ./data --skip-l\ocking $extra >> $log 2>&1 &"); sleep(2); } + if ($opt_stage <= 7 && $opt_perl_files && !$opt_no_perl && !$opt_no_test) { safe_cd($test_dir); |