mariadb/tests/fork_big.pl

596 lines
15 KiB
Perl
Raw Normal View History

#!/usr/bin/perl -w
# Copyright (C) 2001 MySQL AB
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# This is a test with uses many processes to test a MySQL server.
#
# Tested a lot with: --threads=30
$opt_loop_count=500000; # Change this to make test harder/easier
##################### Standard benchmark inits ##############################
use DBI;
use Getopt::Long;
use Benchmark;
package main;
$opt_skip_create=$opt_skip_in=$opt_verbose=$opt_fast_insert=
$opt_lock_tables=$opt_debug=$opt_skip_delete=$opt_fast=$opt_force=0;
$opt_threads=5;
$opt_host=$opt_user=$opt_password=""; $opt_db="test";
GetOptions("host=s","db=s","user=s","password=s","loop-count=i","skip-create","skip-in","skip-delete","verbose","fast-insert","lock-tables","debug","fast","force","threads=i") || die "Aborted";
$opt_verbose=$opt_debug=$opt_lock_tables=$opt_fast_insert=$opt_fast=$opt_skip_in=$opt_force=undef; # Ignore warnings from these
print "Test of multiple connections that test the following things:\n";
print "insert, select, delete, update, alter, check, repair and flush\n";
@testtables = ( ["bench_f31", ""],
["bench_f32", "row_format=fixed"],
["bench_f33", "delay_key_write=1"],
["bench_f34", "checksum=1"],
["bench_f35", "delay_key_write=1"]);
$abort_table="bench_f39";
$numtables = $#testtables+1;
srand 100; # Make random numbers repeatable
####
#### Start timeing and start test
####
$start_time=new Benchmark;
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
if (!$opt_skip_create)
{
my $table_def;
foreach $table_def (@testtables)
{
my ($table,$extra)= ($table_def->[0], $table_def->[1]);
print "Creating table $table in database $opt_db\n";
$dbh->do("drop table if exists $table");
$dbh->do("create table $table".
" (id int(6) not null auto_increment,".
" info varchar(32)," .
" marker timestamp," .
" flag int not null," .
" primary key(id)) $extra")
or die $DBI::errstr;
# One row in the table will make future tests easier
$dbh->do("insert into $table (id) values (null)")
or die $DBI::errstr;
}
# Create the table we use to signal that we should end the test
$dbh->do("drop table if exists $abort_table");
$dbh->do("create table $abort_table (id int(6) not null) ENGINE=heap") ||
die $DBI::errstr;
}
$dbh->do("delete from $abort_table");
$dbh->disconnect; $dbh=0; # Close handler
$|= 1; # Autoflush
####
#### Start the tests
####
for ($i=0 ; $i < $opt_threads ; $i ++)
{
test_insert() if (($pid=fork()) == 0); $work{$pid}="insert";
}
for ($i=0 ; $i < $numtables ; $i ++)
{
test_insert($i,$i) if (($pid=fork()) == 0); $work{$pid}="insert_one";
}
for ($i=0 ; $i < $opt_threads ; $i ++)
{
test_select() if (($pid=fork()) == 0); $work{$pid}="select_key";
}
test_join() if (($pid=fork()) == 0); $work{$pid}="test_join";
test_select_count() if (($pid=fork()) == 0); $work{$pid}="select_count";
test_delete() if (($pid=fork()) == 0); $work{$pid}="delete";
test_update() if (($pid=fork()) == 0); $work{$pid}="update";
test_flush() if (($pid=fork()) == 0); $work{$pid}= "flush";
test_check() if (($pid=fork()) == 0); $work{$pid}="check";
test_repair() if (($pid=fork()) == 0); $work{$pid}="repair";
test_alter() if (($pid=fork()) == 0); $work{$pid}="alter";
Changed Innobase to Innodb Deleted a lot of old benchmark runs BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_i686_xeon~3e820c28bf4af63a: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_i686_xeon~17854e751e1d9d1d: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_i686_xeon~64cc4b874cd6fabf: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_i686_xeon~290c2c3de9d8e6b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_i686_xeon~ea19dc3ec55b3618: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_i686_xeon~50d15991293030ef: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_i686_xeon~c683ee4b9d214298: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_i686_xeon~ead3f11b46ac626f: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_i686_xeon~7525b23938631801: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_my_SMP_i686~d275df58a04737c8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_my_SMP_i686~d4766c7f8e70d7a2: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_my_SMP_i686~155a83b53c0e9d6: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_my_SMP_i686~f1127add9307098b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_my_SMP_i686~45d2cdf9bea9cc37: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_my_SMP_i686~d46860c29c5d51ee: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_my_SMP_i686~e1771e0a164bc310: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_my_SMP_i686~ee2a063d66a183d: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_my_SMP_i686~b7552710d35202b6: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-ATIS-mysql-3.21-Linux_2.2.1_i686~660fb76ed6ccfb6f: Delete: sql-bench/Results/ATIS-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-RUN-mysql-3.21-Linux_2.2.1_i686~f6fdd64859e11de9: Delete: sql-bench/Results/RUN-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-alter-table-mysql-3.21-Linux_2.2.1_i686~f6f7ccd7b3c35f97: Delete: sql-bench/Results/alter-table-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-big-tables-mysql-3.21-Linux_2.2.1_i686~baa649caba113497: Delete: sql-bench/Results/big-tables-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-connect-mysql-3.21-Linux_2.2.1_i686~c0c26d4320182d85: Delete: sql-bench/Results/connect-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-create-mysql-3.21-Linux_2.2.1_i686~51581b24f45e0f5c: Delete: sql-bench/Results/create-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-insert-mysql-3.21-Linux_2.2.1_i686~fd082017c7c57a6: Delete: sql-bench/Results/insert-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-select-mysql-3.21-Linux_2.2.1_i686~ed3687e713ff0571: Delete: sql-bench/Results/select-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-wisconsin-mysql-3.21-Linux_2.2.1_i686~8147dc16a1dc6c47: Delete: sql-bench/Results/wisconsin-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-ATIS-mysql_3.21-Linux_2.0.35_i686~c25425e045ca8dfc: Delete: sql-bench/Results/ATIS-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-RUN-mysql_3.21-Linux_2.0.35_i686~ea8672d8473435: Delete: sql-bench/Results/RUN-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-alter-table-mysql_3.21-Linux_2.0.35_i686~762639f2560976bd: Delete: sql-bench/Results/alter-table-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-big-tables-mysql_3.21-Linux_2.0.35_i686~190e827e569c99a4: Delete: sql-bench/Results/big-tables-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-connect-mysql_3.21-Linux_2.0.35_i686~650abd213e6828c6: Delete: sql-bench/Results/connect-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-create-mysql_3.21-Linux_2.0.35_i686~df1b037d17b33587: Delete: sql-bench/Results/create-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-insert-mysql_3.21-Linux_2.0.35_i686~60c0965dff31db07: Delete: sql-bench/Results/insert-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-select-mysql_3.21-Linux_2.0.35_i686~5fadbac5f98696a: Delete: sql-bench/Results/select-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-wisconsin-mysql_3.21-Linux_2.0.35_i686~31703d40ea6b4f66: Delete: sql-bench/Results/wisconsin-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.10_i686~3fa4d167cceff7e8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.10_i686~712f52be5d195406: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.10_i686~93b78a85b720a186: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.10_i686~99daa1c5370d077d: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.10_i686~c92505d77e19d5ec: Delete: sql-bench/Results/connect-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.10_i686~9e7822f66df6aa76: Delete: sql-bench/Results/create-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.10_i686~763edf9aec633f51: Delete: sql-bench/Results/insert-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.10_i686~a2e264d777b787d: Delete: sql-bench/Results/select-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.10_i686~301a82b12a84922b: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-ATIS-mysql-win98~cd0705815d3af451: Delete: sql-bench/Results-win32/ATIS-mysql-win98 BitKeeper/deleted/.del-RUN-mysql-win98~7f09e396772a8665: Delete: sql-bench/Results-win32/RUN-mysql-win98 BitKeeper/deleted/.del-alter-table-mysql-win98~e8743982f790462: Delete: sql-bench/Results-win32/alter-table-mysql-win98 BitKeeper/deleted/.del-big-tables-mysql-win98~99a1882effebbdf2: Delete: sql-bench/Results-win32/big-tables-mysql-win98 BitKeeper/deleted/.del-connect-mysql-win98~2a11d5e3dfc0bc67: Delete: sql-bench/Results-win32/connect-mysql-win98 BitKeeper/deleted/.del-create-mysql-win98~f66c2cb2909c4792: Delete: sql-bench/Results-win32/create-mysql-win98 BitKeeper/deleted/.del-insert-mysql-win98~6d6cafc85a6c837: Delete: sql-bench/Results-win32/insert-mysql-win98 BitKeeper/deleted/.del-select-mysql-win98~f370fac2d66a9faf: Delete: sql-bench/Results-win32/select-mysql-win98 BitKeeper/deleted/.del-wisconsin-mysql-win98~8b3da9c5c5d2365b: Delete: sql-bench/Results-win32/wisconsin-mysql-win98 BUILD/compile-pentium-debug-max: Innobase -> Innodb BUILD/compile-pentium-max: Innobase -> Innodb Docs/manual.texi: Innobase -> Innodb acinclude.m4: Innobase -> Innodb bdb/Makefile.in: Fix that make clean works configure.in: Innobase -> Innodb mysql-test/include/have_innodb.inc: Innobase -> Innodb mysql-test/install_test_db.sh: Innobase -> Innodb mysql-test/mysql-test-run.sh: Innobase -> Innodb mysql-test/r/have_innodb.require: Innobase -> Innodb mysql-test/r/innodb.result: Innobase -> Innodb mysql-test/t/innodb.test: Innobase -> Innodb scripts/mysql_install_db.sh: Innobase -> Innodb scripts/mysqlhotcopy.sh: Remove some warnings sql-bench/server-cfg.sh: Innobase -> Innodb sql/Makefile.am: Innobase -> Innodb sql/ha_innobase.cc: Innobase -> Innodb sql/ha_innobase.h: Innobase -> Innodb sql/handler.cc: Innobase -> Innodb sql/mysqld.cc: Innobase -> Innodb sql/sql_delete.cc: Innobase -> Innodb support-files/my-huge.cnf.sh: Innobase -> Innodb support-files/my-large.cnf.sh: Innobase -> Innodb support-files/my-medium.cnf.sh: Innobase -> Innodb support-files/my-small.cnf.sh: Innobase -> Innodb support-files/mysql-max.spec.sh: Innobase -> Innodb support-files/mysql.spec.sh: Innobase -> Innodb tests/fork_big.pl: Added checking of whole database
2001-04-13 11:25:12 +02:00
#test_database("test2") if (($pid=fork()) == 0); $work{$pid}="check_database";
print "Started " . ($opt_threads*2+4) . " threads\n";
$errors=0;
$running_insert_threads=$opt_threads+$numtables;
while (($pid=wait()) != -1)
{
$ret=$?/256;
Don't do signal() on windows (Causes instability problems) Safer, a bit faster filesort. Code changes to avoid calls to current_thd() (faster code). Removed all compiler warnings from readline. BitKeeper/etc/ignore: Add my_global.h back. Docs/manual.texi: 4.0.1 Changelog include/my_sys.h: Added strmake_root libmysql/libmysql.c: Don't do signal() on windows (Causes instability problems) mysys/my_alloc.c: Added strmake_root readline/bind.c: Remove warnings readline/complete.c: Remove warnings readline/display.c: Remove warnings readline/funmap.c: Remove warnings readline/histexpand.c: Remove warnings readline/histfile.c: Remove warnings readline/history.h: Remove warnings readline/histsearch.c: Remove warnings readline/isearch.c: Remove warnings readline/kill.c: Remove warnings readline/macro.c: Remove warnings readline/readline.c: Remove warnings readline/readline.h: Remove warnings readline/rltty.c: Remove warnings readline/search.c: Remove warnings readline/shell.c: Remove warnings readline/terminal.c: Remove warnings readline/tilde.c: Remove warnings readline/tilde.h: Remove warnings readline/undo.c: Remove warnings readline/util.c: Remove warnings readline/vi_mode.c: Remove warnings sql-bench/server-cfg.sh: Added use of truncate table sql-bench/test-insert.sh: Added use of truncate table Changed some tests to use keys instead of 'range' sql-bench/test-wisconsin.sh: Cleanup sql/field.cc: Add 'thd' to send() (To avoid usage of 'current_thd') sql/field.h: Add 'thd' to send() (To avoid usage of 'current_thd') sql/filesort.cc: Safer memory allocation; Don't allocate pointer to buffers directly, but use an IO_CACHE instead. This will allow us to use more memory for keys and will also work better if the number of rows that is to be sorted is much larger than expected. sql/item.cc: Add 'thd' to send() (To avoid usage of 'current_thd') sql/item.h: Add 'thd' to send() (To avoid usage of 'current_thd') sql/item_func.h: Cleanup sql/opt_range.cc: Use mem_root instead of sql_alloc() to get more speed sql/sql_class.cc: Add 'thd' to send() (To avoid usage of 'current_thd') sql/sql_class.h: Added strmake() sql/sql_handler.cc: Add 'thd' to send() (To avoid usage of 'current_thd') sql/sql_lex.cc: Use mem_root instead of sql_alloc() to get more speed sql/sql_select.cc: Add 'thd' to send() (To avoid usage of 'current_thd') tests/fork2_test.pl: Fixed typos tests/fork_big.pl: Fixed typos tests/insert_and_repair.pl: Fixed typos tests/rename_test.pl: Fixed typos tests/test_delayed_insert.pl: Fixed typos
2001-10-17 18:39:39 +02:00
print "thread '" . $work{$pid} . "' finished with exit code $ret\n";
if ($work{$pid} =~ /^insert/)
{
if (!--$running_insert_threads)
{
# Time to stop other threads
signal_abort();
}
}
$errors++ if ($ret != 0);
}
#
# Cleanup
#
if (!$opt_skip_delete && !$errors)
{
my $table_def;
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$dbh->do("drop table $abort_table");
foreach $table_def (@testtables)
{
$dbh->do("drop table " . $table_def->[0]);
}
$dbh->disconnect; $dbh=0; # Close handler
}
print ($errors ? "Test failed\n" :"Test ok\n");
$end_time=new Benchmark;
print "Total time: " .
timestr(timediff($end_time, $start_time),"noc") . "\n";
exit(0);
#
# Insert records in the table
#
sub test_insert
{
my ($from_table,$to_table)= @_;
my ($dbh,$i,$j,$count,$table_def,$table);
if (!defined($from_table))
{
$from_table=0; $to_table=$numtables-1;
}
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
for ($i=$count=0 ; $i < $opt_loop_count; $i++)
{
for ($j= $from_table ; $j <= $to_table ; $j++)
{
my ($table)= ($testtables[$j]->[0]);
$dbh->do("insert into $table values (NULL,'This is entry $i','',0)") || die "Got error on insert: $DBI::errstr\n";
$count++;
}
}
$dbh->disconnect; $dbh=0;
print "Test_insert: Inserted $count rows\n";
exit(0);
}
#
# select records
# Do continously select over all tables as long as there is changed
# rows in the table
#
sub test_select
{
my ($dbh, $i, $j, $count, $loop);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$count_query=make_count_query($numtables);
$count=0;
$loop=9999;
$i=0;
while (($i++ % 100) || !test_if_abort($dbh))
{
if ($loop++ >= 100)
{
$loop=0;
$row_counts=simple_query($dbh, $count_query);
}
for ($j=0 ; $j < $numtables ; $j++)
{
my ($id)= int rand $row_counts->[$j];
my ($table)= $testtables[$j]->[0];
simple_query($dbh, "select id,info from $table where id=$id");
$count++;
}
}
$dbh->disconnect; $dbh=0;
print "Test_select: Executed $count selects\n";
exit(0);
}
#
# Do big select count(distinct..) over the table
#
sub test_select_count
{
my ($dbh, $i, $j, $count, $loop);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$count=0;
$i=0;
while (!test_if_abort($dbh))
{
for ($j=0 ; $j < $numtables ; $j++)
{
my ($table)= $testtables[$j]->[0];
simple_query($dbh, "select count(distinct marker),count(distinct id),count(distinct info) from $table");
$count++;
}
sleep(20); # This query is quite slow
}
$dbh->disconnect; $dbh=0;
print "Test_select: Executed $count select count(distinct) queries\n";
exit(0);
}
#
# select records
# Do continously joins between the first and second table
#
sub test_join
{
my ($dbh, $i, $j, $count, $loop);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$count_query=make_count_query($numtables);
$count=0;
$loop=9999;
$i=0;
while (($i++ % 100) || !test_if_abort($dbh))
{
if ($loop++ >= 100)
{
$loop=0;
$row_counts=simple_query($dbh, $count_query);
}
for ($j=0 ; $j < $numtables-1 ; $j++)
{
my ($id)= int rand $row_counts->[$j];
my ($t1,$t2)= ($testtables[$j]->[0],$testtables[$j+1]->[0]);
simple_query($dbh, "select $t1.id,$t2.info from $t1, $t2 where $t1.id=$t2.id and $t1.id=$id");
$count++;
}
}
$dbh->disconnect; $dbh=0;
print "Test_join: Executed $count joins\n";
exit(0);
}
#
# Delete 1-5 rows from the first 2 tables.
# Test ends when the number of rows for table 3 didn't change during
# one loop
#
sub test_delete
{
my ($dbh, $i,$j, $row_counts, $count_query, $table_count, $count);
$table_count=2;
$count=0;
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$count_query=make_count_query($table_count+1);
sleep(5); # Give time to insert some rows
$i=0;
while (($i++ % 10) || !test_if_abort($dbh))
{
sleep(1);
$row_counts=simple_query($dbh, $count_query);
for ($j=0 ; $j < $table_count ; $j++)
{
my ($id)= int rand $row_counts->[$j];
my ($table)= $testtables[$j]->[0];
$dbh->do("delete from $table where id >= $id-2 and id <= $id +2") || die "Got error on delete from $table: $DBI::errstr\n";
$count++;
}
}
$dbh->disconnect; $dbh=0;
print "Test_delete: Executed $count deletes\n";
exit(0);
}
#
# Update the flag for table 2 and 3
# Will abort after a while when table1 doesn't change max value
#
sub test_update
{
my ($dbh, $i, $j, $row_counts, $count_query, $count, $loop);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$count_query=make_count_query(3);
$loop=9999;
$count=0;
sleep(5); # Give time to insert some rows
$i=0;
while (($i++ % 100) || !test_if_abort($dbh))
{
if ($loop++ >= 100)
{
$loop=0;
$row_counts=simple_query($dbh, $count_query);
}
for ($j=1 ; $j <= 2 ; $j++)
{
my ($id)= int rand $row_counts->[$j];
my ($table)= $testtables[$j]->[0];
# Fix to not change the same rows as the above delete
$id= ($id + $count) % $row_counts->[$j];
$dbh->do("update $table set flag=flag+1 where id >= $id-2 and id <= $id +2") || die "Got error on update of $table: $DBI::errstr\n";
$count++;
}
}
$dbh->disconnect; $dbh=0;
print "Test_update: Executed $count updates\n";
exit(0);
}
#
# Run a check on all tables except the last one
# (The last one is not checked to put pressure on the key cache)
#
sub test_check
{
my ($dbh, $row, $i, $j, $type, $table);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$type= "check";
for ($i=$j=0 ; !test_if_abort($dbh) ; $i++)
{
sleep(1000);
$table=$testtables[$j]->[0];
$sth=$dbh->prepare("$type table $table") || die "Got error on prepare: $DBI::errstr\n";
$sth->execute || die $DBI::errstr;
while (($row=$sth->fetchrow_arrayref))
{
if ($row->[3] ne "OK")
{
print "Got error " . $row->[3] . " when doing $type on $table\n";
exit(1);
}
}
if (++$j == $numtables-1)
{
$j=0;
}
}
$dbh->disconnect; $dbh=0;
print "test_check: Executed $i checks\n";
exit(0);
}
#
# Do a repair on the first table once in a while
#
sub test_repair
{
my ($dbh, $row, $i, $type, $table);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$type= "repair";
for ($i=0 ; !test_if_abort($dbh) ; $i++)
{
sleep(2000);
$table=$testtables[0]->[0];
$sth=$dbh->prepare("$type table $table") || die "Got error on prepare: $DBI::errstr\n";
$sth->execute || die $DBI::errstr;
while (($row=$sth->fetchrow_arrayref))
{
if ($row->[3] ne "OK")
{
print "Got error " . $row->[3] . " when doing $type on $table\n";
exit(1);
}
}
}
$dbh->disconnect; $dbh=0;
print "test_repair: Executed $i repairs\n";
exit(0);
}
#
# Do a flush tables on table 3 and 4 once in a while
#
sub test_flush
{
my ($dbh,$count,$tables);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$tables=$testtables[2]->[0] . "," . $testtables[3]->[0];
$count=0;
while (!test_if_abort($dbh))
{
sleep(3000);
$dbh->do("flush tables $tables") ||
die "Got error on flush $DBI::errstr\n";
$count++;
}
$dbh->disconnect; $dbh=0;
print "flush: Executed $count flushs\n";
exit(0);
}
Changed Innobase to Innodb Deleted a lot of old benchmark runs BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_i686_xeon~3e820c28bf4af63a: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_i686_xeon~17854e751e1d9d1d: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_i686_xeon~64cc4b874cd6fabf: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_i686_xeon~290c2c3de9d8e6b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_i686_xeon~ea19dc3ec55b3618: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_i686_xeon~50d15991293030ef: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_i686_xeon~c683ee4b9d214298: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_i686_xeon~ead3f11b46ac626f: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_i686_xeon~7525b23938631801: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_my_SMP_i686~d275df58a04737c8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_my_SMP_i686~d4766c7f8e70d7a2: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_my_SMP_i686~155a83b53c0e9d6: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_my_SMP_i686~f1127add9307098b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_my_SMP_i686~45d2cdf9bea9cc37: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_my_SMP_i686~d46860c29c5d51ee: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_my_SMP_i686~e1771e0a164bc310: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_my_SMP_i686~ee2a063d66a183d: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_my_SMP_i686~b7552710d35202b6: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-ATIS-mysql-3.21-Linux_2.2.1_i686~660fb76ed6ccfb6f: Delete: sql-bench/Results/ATIS-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-RUN-mysql-3.21-Linux_2.2.1_i686~f6fdd64859e11de9: Delete: sql-bench/Results/RUN-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-alter-table-mysql-3.21-Linux_2.2.1_i686~f6f7ccd7b3c35f97: Delete: sql-bench/Results/alter-table-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-big-tables-mysql-3.21-Linux_2.2.1_i686~baa649caba113497: Delete: sql-bench/Results/big-tables-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-connect-mysql-3.21-Linux_2.2.1_i686~c0c26d4320182d85: Delete: sql-bench/Results/connect-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-create-mysql-3.21-Linux_2.2.1_i686~51581b24f45e0f5c: Delete: sql-bench/Results/create-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-insert-mysql-3.21-Linux_2.2.1_i686~fd082017c7c57a6: Delete: sql-bench/Results/insert-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-select-mysql-3.21-Linux_2.2.1_i686~ed3687e713ff0571: Delete: sql-bench/Results/select-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-wisconsin-mysql-3.21-Linux_2.2.1_i686~8147dc16a1dc6c47: Delete: sql-bench/Results/wisconsin-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-ATIS-mysql_3.21-Linux_2.0.35_i686~c25425e045ca8dfc: Delete: sql-bench/Results/ATIS-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-RUN-mysql_3.21-Linux_2.0.35_i686~ea8672d8473435: Delete: sql-bench/Results/RUN-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-alter-table-mysql_3.21-Linux_2.0.35_i686~762639f2560976bd: Delete: sql-bench/Results/alter-table-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-big-tables-mysql_3.21-Linux_2.0.35_i686~190e827e569c99a4: Delete: sql-bench/Results/big-tables-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-connect-mysql_3.21-Linux_2.0.35_i686~650abd213e6828c6: Delete: sql-bench/Results/connect-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-create-mysql_3.21-Linux_2.0.35_i686~df1b037d17b33587: Delete: sql-bench/Results/create-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-insert-mysql_3.21-Linux_2.0.35_i686~60c0965dff31db07: Delete: sql-bench/Results/insert-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-select-mysql_3.21-Linux_2.0.35_i686~5fadbac5f98696a: Delete: sql-bench/Results/select-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-wisconsin-mysql_3.21-Linux_2.0.35_i686~31703d40ea6b4f66: Delete: sql-bench/Results/wisconsin-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.10_i686~3fa4d167cceff7e8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.10_i686~712f52be5d195406: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.10_i686~93b78a85b720a186: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.10_i686~99daa1c5370d077d: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.10_i686~c92505d77e19d5ec: Delete: sql-bench/Results/connect-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.10_i686~9e7822f66df6aa76: Delete: sql-bench/Results/create-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.10_i686~763edf9aec633f51: Delete: sql-bench/Results/insert-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.10_i686~a2e264d777b787d: Delete: sql-bench/Results/select-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.10_i686~301a82b12a84922b: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-ATIS-mysql-win98~cd0705815d3af451: Delete: sql-bench/Results-win32/ATIS-mysql-win98 BitKeeper/deleted/.del-RUN-mysql-win98~7f09e396772a8665: Delete: sql-bench/Results-win32/RUN-mysql-win98 BitKeeper/deleted/.del-alter-table-mysql-win98~e8743982f790462: Delete: sql-bench/Results-win32/alter-table-mysql-win98 BitKeeper/deleted/.del-big-tables-mysql-win98~99a1882effebbdf2: Delete: sql-bench/Results-win32/big-tables-mysql-win98 BitKeeper/deleted/.del-connect-mysql-win98~2a11d5e3dfc0bc67: Delete: sql-bench/Results-win32/connect-mysql-win98 BitKeeper/deleted/.del-create-mysql-win98~f66c2cb2909c4792: Delete: sql-bench/Results-win32/create-mysql-win98 BitKeeper/deleted/.del-insert-mysql-win98~6d6cafc85a6c837: Delete: sql-bench/Results-win32/insert-mysql-win98 BitKeeper/deleted/.del-select-mysql-win98~f370fac2d66a9faf: Delete: sql-bench/Results-win32/select-mysql-win98 BitKeeper/deleted/.del-wisconsin-mysql-win98~8b3da9c5c5d2365b: Delete: sql-bench/Results-win32/wisconsin-mysql-win98 BUILD/compile-pentium-debug-max: Innobase -> Innodb BUILD/compile-pentium-max: Innobase -> Innodb Docs/manual.texi: Innobase -> Innodb acinclude.m4: Innobase -> Innodb bdb/Makefile.in: Fix that make clean works configure.in: Innobase -> Innodb mysql-test/include/have_innodb.inc: Innobase -> Innodb mysql-test/install_test_db.sh: Innobase -> Innodb mysql-test/mysql-test-run.sh: Innobase -> Innodb mysql-test/r/have_innodb.require: Innobase -> Innodb mysql-test/r/innodb.result: Innobase -> Innodb mysql-test/t/innodb.test: Innobase -> Innodb scripts/mysql_install_db.sh: Innobase -> Innodb scripts/mysqlhotcopy.sh: Remove some warnings sql-bench/server-cfg.sh: Innobase -> Innodb sql/Makefile.am: Innobase -> Innodb sql/ha_innobase.cc: Innobase -> Innodb sql/ha_innobase.h: Innobase -> Innodb sql/handler.cc: Innobase -> Innodb sql/mysqld.cc: Innobase -> Innodb sql/sql_delete.cc: Innobase -> Innodb support-files/my-huge.cnf.sh: Innobase -> Innodb support-files/my-large.cnf.sh: Innobase -> Innodb support-files/my-medium.cnf.sh: Innobase -> Innodb support-files/my-small.cnf.sh: Innobase -> Innodb support-files/mysql-max.spec.sh: Innobase -> Innodb support-files/mysql.spec.sh: Innobase -> Innodb tests/fork_big.pl: Added checking of whole database
2001-04-13 11:25:12 +02:00
#
# Test all tables in a database
#
sub test_database
{
my ($database) = @_;
my ($dbh, $row, $i, $type, $tables);
Changed Innobase to Innodb Deleted a lot of old benchmark runs BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_i686_xeon~3e820c28bf4af63a: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_i686_xeon~17854e751e1d9d1d: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_i686_xeon~64cc4b874cd6fabf: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_i686_xeon~290c2c3de9d8e6b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_i686_xeon~ea19dc3ec55b3618: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_i686_xeon~50d15991293030ef: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_i686_xeon~c683ee4b9d214298: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_i686_xeon~ead3f11b46ac626f: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_i686_xeon~7525b23938631801: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_my_SMP_i686~d275df58a04737c8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_my_SMP_i686~d4766c7f8e70d7a2: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_my_SMP_i686~155a83b53c0e9d6: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_my_SMP_i686~f1127add9307098b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_my_SMP_i686~45d2cdf9bea9cc37: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_my_SMP_i686~d46860c29c5d51ee: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_my_SMP_i686~e1771e0a164bc310: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_my_SMP_i686~ee2a063d66a183d: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_my_SMP_i686~b7552710d35202b6: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-ATIS-mysql-3.21-Linux_2.2.1_i686~660fb76ed6ccfb6f: Delete: sql-bench/Results/ATIS-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-RUN-mysql-3.21-Linux_2.2.1_i686~f6fdd64859e11de9: Delete: sql-bench/Results/RUN-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-alter-table-mysql-3.21-Linux_2.2.1_i686~f6f7ccd7b3c35f97: Delete: sql-bench/Results/alter-table-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-big-tables-mysql-3.21-Linux_2.2.1_i686~baa649caba113497: Delete: sql-bench/Results/big-tables-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-connect-mysql-3.21-Linux_2.2.1_i686~c0c26d4320182d85: Delete: sql-bench/Results/connect-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-create-mysql-3.21-Linux_2.2.1_i686~51581b24f45e0f5c: Delete: sql-bench/Results/create-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-insert-mysql-3.21-Linux_2.2.1_i686~fd082017c7c57a6: Delete: sql-bench/Results/insert-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-select-mysql-3.21-Linux_2.2.1_i686~ed3687e713ff0571: Delete: sql-bench/Results/select-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-wisconsin-mysql-3.21-Linux_2.2.1_i686~8147dc16a1dc6c47: Delete: sql-bench/Results/wisconsin-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-ATIS-mysql_3.21-Linux_2.0.35_i686~c25425e045ca8dfc: Delete: sql-bench/Results/ATIS-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-RUN-mysql_3.21-Linux_2.0.35_i686~ea8672d8473435: Delete: sql-bench/Results/RUN-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-alter-table-mysql_3.21-Linux_2.0.35_i686~762639f2560976bd: Delete: sql-bench/Results/alter-table-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-big-tables-mysql_3.21-Linux_2.0.35_i686~190e827e569c99a4: Delete: sql-bench/Results/big-tables-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-connect-mysql_3.21-Linux_2.0.35_i686~650abd213e6828c6: Delete: sql-bench/Results/connect-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-create-mysql_3.21-Linux_2.0.35_i686~df1b037d17b33587: Delete: sql-bench/Results/create-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-insert-mysql_3.21-Linux_2.0.35_i686~60c0965dff31db07: Delete: sql-bench/Results/insert-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-select-mysql_3.21-Linux_2.0.35_i686~5fadbac5f98696a: Delete: sql-bench/Results/select-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-wisconsin-mysql_3.21-Linux_2.0.35_i686~31703d40ea6b4f66: Delete: sql-bench/Results/wisconsin-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.10_i686~3fa4d167cceff7e8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.10_i686~712f52be5d195406: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.10_i686~93b78a85b720a186: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.10_i686~99daa1c5370d077d: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.10_i686~c92505d77e19d5ec: Delete: sql-bench/Results/connect-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.10_i686~9e7822f66df6aa76: Delete: sql-bench/Results/create-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.10_i686~763edf9aec633f51: Delete: sql-bench/Results/insert-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.10_i686~a2e264d777b787d: Delete: sql-bench/Results/select-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.10_i686~301a82b12a84922b: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-ATIS-mysql-win98~cd0705815d3af451: Delete: sql-bench/Results-win32/ATIS-mysql-win98 BitKeeper/deleted/.del-RUN-mysql-win98~7f09e396772a8665: Delete: sql-bench/Results-win32/RUN-mysql-win98 BitKeeper/deleted/.del-alter-table-mysql-win98~e8743982f790462: Delete: sql-bench/Results-win32/alter-table-mysql-win98 BitKeeper/deleted/.del-big-tables-mysql-win98~99a1882effebbdf2: Delete: sql-bench/Results-win32/big-tables-mysql-win98 BitKeeper/deleted/.del-connect-mysql-win98~2a11d5e3dfc0bc67: Delete: sql-bench/Results-win32/connect-mysql-win98 BitKeeper/deleted/.del-create-mysql-win98~f66c2cb2909c4792: Delete: sql-bench/Results-win32/create-mysql-win98 BitKeeper/deleted/.del-insert-mysql-win98~6d6cafc85a6c837: Delete: sql-bench/Results-win32/insert-mysql-win98 BitKeeper/deleted/.del-select-mysql-win98~f370fac2d66a9faf: Delete: sql-bench/Results-win32/select-mysql-win98 BitKeeper/deleted/.del-wisconsin-mysql-win98~8b3da9c5c5d2365b: Delete: sql-bench/Results-win32/wisconsin-mysql-win98 BUILD/compile-pentium-debug-max: Innobase -> Innodb BUILD/compile-pentium-max: Innobase -> Innodb Docs/manual.texi: Innobase -> Innodb acinclude.m4: Innobase -> Innodb bdb/Makefile.in: Fix that make clean works configure.in: Innobase -> Innodb mysql-test/include/have_innodb.inc: Innobase -> Innodb mysql-test/install_test_db.sh: Innobase -> Innodb mysql-test/mysql-test-run.sh: Innobase -> Innodb mysql-test/r/have_innodb.require: Innobase -> Innodb mysql-test/r/innodb.result: Innobase -> Innodb mysql-test/t/innodb.test: Innobase -> Innodb scripts/mysql_install_db.sh: Innobase -> Innodb scripts/mysqlhotcopy.sh: Remove some warnings sql-bench/server-cfg.sh: Innobase -> Innodb sql/Makefile.am: Innobase -> Innodb sql/ha_innobase.cc: Innobase -> Innodb sql/ha_innobase.h: Innobase -> Innodb sql/handler.cc: Innobase -> Innodb sql/mysqld.cc: Innobase -> Innodb sql/sql_delete.cc: Innobase -> Innodb support-files/my-huge.cnf.sh: Innobase -> Innodb support-files/my-large.cnf.sh: Innobase -> Innodb support-files/my-medium.cnf.sh: Innobase -> Innodb support-files/my-small.cnf.sh: Innobase -> Innodb support-files/mysql-max.spec.sh: Innobase -> Innodb support-files/mysql.spec.sh: Innobase -> Innodb tests/fork_big.pl: Added checking of whole database
2001-04-13 11:25:12 +02:00
$dbh = DBI->connect("DBI:mysql:$database:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$tables= join(',',$dbh->func('_ListTables'));
$type= "check";
for ($i=0 ; !test_if_abort($dbh) ; $i++)
{
sleep(120);
Changed Innobase to Innodb Deleted a lot of old benchmark runs BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_i686_xeon~3e820c28bf4af63a: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_i686_xeon~17854e751e1d9d1d: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_i686_xeon~64cc4b874cd6fabf: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_i686_xeon~290c2c3de9d8e6b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_i686_xeon~ea19dc3ec55b3618: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_i686_xeon~50d15991293030ef: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_i686_xeon~c683ee4b9d214298: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_i686_xeon~ead3f11b46ac626f: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_i686_xeon~7525b23938631801: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_my_SMP_i686~d275df58a04737c8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_my_SMP_i686~d4766c7f8e70d7a2: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_my_SMP_i686~155a83b53c0e9d6: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_my_SMP_i686~f1127add9307098b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_my_SMP_i686~45d2cdf9bea9cc37: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_my_SMP_i686~d46860c29c5d51ee: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_my_SMP_i686~e1771e0a164bc310: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_my_SMP_i686~ee2a063d66a183d: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_my_SMP_i686~b7552710d35202b6: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-ATIS-mysql-3.21-Linux_2.2.1_i686~660fb76ed6ccfb6f: Delete: sql-bench/Results/ATIS-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-RUN-mysql-3.21-Linux_2.2.1_i686~f6fdd64859e11de9: Delete: sql-bench/Results/RUN-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-alter-table-mysql-3.21-Linux_2.2.1_i686~f6f7ccd7b3c35f97: Delete: sql-bench/Results/alter-table-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-big-tables-mysql-3.21-Linux_2.2.1_i686~baa649caba113497: Delete: sql-bench/Results/big-tables-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-connect-mysql-3.21-Linux_2.2.1_i686~c0c26d4320182d85: Delete: sql-bench/Results/connect-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-create-mysql-3.21-Linux_2.2.1_i686~51581b24f45e0f5c: Delete: sql-bench/Results/create-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-insert-mysql-3.21-Linux_2.2.1_i686~fd082017c7c57a6: Delete: sql-bench/Results/insert-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-select-mysql-3.21-Linux_2.2.1_i686~ed3687e713ff0571: Delete: sql-bench/Results/select-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-wisconsin-mysql-3.21-Linux_2.2.1_i686~8147dc16a1dc6c47: Delete: sql-bench/Results/wisconsin-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-ATIS-mysql_3.21-Linux_2.0.35_i686~c25425e045ca8dfc: Delete: sql-bench/Results/ATIS-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-RUN-mysql_3.21-Linux_2.0.35_i686~ea8672d8473435: Delete: sql-bench/Results/RUN-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-alter-table-mysql_3.21-Linux_2.0.35_i686~762639f2560976bd: Delete: sql-bench/Results/alter-table-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-big-tables-mysql_3.21-Linux_2.0.35_i686~190e827e569c99a4: Delete: sql-bench/Results/big-tables-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-connect-mysql_3.21-Linux_2.0.35_i686~650abd213e6828c6: Delete: sql-bench/Results/connect-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-create-mysql_3.21-Linux_2.0.35_i686~df1b037d17b33587: Delete: sql-bench/Results/create-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-insert-mysql_3.21-Linux_2.0.35_i686~60c0965dff31db07: Delete: sql-bench/Results/insert-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-select-mysql_3.21-Linux_2.0.35_i686~5fadbac5f98696a: Delete: sql-bench/Results/select-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-wisconsin-mysql_3.21-Linux_2.0.35_i686~31703d40ea6b4f66: Delete: sql-bench/Results/wisconsin-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.10_i686~3fa4d167cceff7e8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.10_i686~712f52be5d195406: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.10_i686~93b78a85b720a186: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.10_i686~99daa1c5370d077d: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.10_i686~c92505d77e19d5ec: Delete: sql-bench/Results/connect-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.10_i686~9e7822f66df6aa76: Delete: sql-bench/Results/create-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.10_i686~763edf9aec633f51: Delete: sql-bench/Results/insert-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.10_i686~a2e264d777b787d: Delete: sql-bench/Results/select-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.10_i686~301a82b12a84922b: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-ATIS-mysql-win98~cd0705815d3af451: Delete: sql-bench/Results-win32/ATIS-mysql-win98 BitKeeper/deleted/.del-RUN-mysql-win98~7f09e396772a8665: Delete: sql-bench/Results-win32/RUN-mysql-win98 BitKeeper/deleted/.del-alter-table-mysql-win98~e8743982f790462: Delete: sql-bench/Results-win32/alter-table-mysql-win98 BitKeeper/deleted/.del-big-tables-mysql-win98~99a1882effebbdf2: Delete: sql-bench/Results-win32/big-tables-mysql-win98 BitKeeper/deleted/.del-connect-mysql-win98~2a11d5e3dfc0bc67: Delete: sql-bench/Results-win32/connect-mysql-win98 BitKeeper/deleted/.del-create-mysql-win98~f66c2cb2909c4792: Delete: sql-bench/Results-win32/create-mysql-win98 BitKeeper/deleted/.del-insert-mysql-win98~6d6cafc85a6c837: Delete: sql-bench/Results-win32/insert-mysql-win98 BitKeeper/deleted/.del-select-mysql-win98~f370fac2d66a9faf: Delete: sql-bench/Results-win32/select-mysql-win98 BitKeeper/deleted/.del-wisconsin-mysql-win98~8b3da9c5c5d2365b: Delete: sql-bench/Results-win32/wisconsin-mysql-win98 BUILD/compile-pentium-debug-max: Innobase -> Innodb BUILD/compile-pentium-max: Innobase -> Innodb Docs/manual.texi: Innobase -> Innodb acinclude.m4: Innobase -> Innodb bdb/Makefile.in: Fix that make clean works configure.in: Innobase -> Innodb mysql-test/include/have_innodb.inc: Innobase -> Innodb mysql-test/install_test_db.sh: Innobase -> Innodb mysql-test/mysql-test-run.sh: Innobase -> Innodb mysql-test/r/have_innodb.require: Innobase -> Innodb mysql-test/r/innodb.result: Innobase -> Innodb mysql-test/t/innodb.test: Innobase -> Innodb scripts/mysql_install_db.sh: Innobase -> Innodb scripts/mysqlhotcopy.sh: Remove some warnings sql-bench/server-cfg.sh: Innobase -> Innodb sql/Makefile.am: Innobase -> Innodb sql/ha_innobase.cc: Innobase -> Innodb sql/ha_innobase.h: Innobase -> Innodb sql/handler.cc: Innobase -> Innodb sql/mysqld.cc: Innobase -> Innodb sql/sql_delete.cc: Innobase -> Innodb support-files/my-huge.cnf.sh: Innobase -> Innodb support-files/my-large.cnf.sh: Innobase -> Innodb support-files/my-medium.cnf.sh: Innobase -> Innodb support-files/my-small.cnf.sh: Innobase -> Innodb support-files/mysql-max.spec.sh: Innobase -> Innodb support-files/mysql.spec.sh: Innobase -> Innodb tests/fork_big.pl: Added checking of whole database
2001-04-13 11:25:12 +02:00
$sth=$dbh->prepare("$type table $tables") || die "Got error on prepare: $DBI::errstr\n";
$sth->execute || die $DBI::errstr;
while (($row=$sth->fetchrow_arrayref))
{
if ($row->[3] ne "OK")
{
print "Got error " . $row->[2] . " " . $row->[3] . " when doing $type on " . $row->[0] . "\n";
exit(1);
}
}
}
$dbh->disconnect; $dbh=0;
print "test_check: Executed $i checks\n";
exit(0);
}
#
# Test ALTER TABLE on the second table
#
sub test_alter
{
my ($dbh, $row, $i, $type, $table);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
for ($i=0 ; !test_if_abort($dbh) ; $i++)
{
sleep(100);
$table=$testtables[1]->[0];
$sth=$dbh->prepare("ALTER table $table modify info char(32)") || die "Got error on prepare: $DBI::errstr\n";
$sth->execute || die $DBI::errstr;
}
$dbh->disconnect; $dbh=0;
print "test_alter: Executed $i ALTER TABLE\n";
exit(0);
}
Changed Innobase to Innodb Deleted a lot of old benchmark runs BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_i686_xeon~3e820c28bf4af63a: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_i686_xeon~17854e751e1d9d1d: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_i686_xeon~64cc4b874cd6fabf: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_i686_xeon~290c2c3de9d8e6b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_i686_xeon~ea19dc3ec55b3618: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_i686_xeon~50d15991293030ef: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_i686_xeon~c683ee4b9d214298: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_i686_xeon~ead3f11b46ac626f: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_i686_xeon~7525b23938631801: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_my_SMP_i686~d275df58a04737c8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_my_SMP_i686~d4766c7f8e70d7a2: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_my_SMP_i686~155a83b53c0e9d6: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_my_SMP_i686~f1127add9307098b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_my_SMP_i686~45d2cdf9bea9cc37: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_my_SMP_i686~d46860c29c5d51ee: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_my_SMP_i686~e1771e0a164bc310: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_my_SMP_i686~ee2a063d66a183d: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_my_SMP_i686~b7552710d35202b6: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-ATIS-mysql-3.21-Linux_2.2.1_i686~660fb76ed6ccfb6f: Delete: sql-bench/Results/ATIS-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-RUN-mysql-3.21-Linux_2.2.1_i686~f6fdd64859e11de9: Delete: sql-bench/Results/RUN-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-alter-table-mysql-3.21-Linux_2.2.1_i686~f6f7ccd7b3c35f97: Delete: sql-bench/Results/alter-table-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-big-tables-mysql-3.21-Linux_2.2.1_i686~baa649caba113497: Delete: sql-bench/Results/big-tables-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-connect-mysql-3.21-Linux_2.2.1_i686~c0c26d4320182d85: Delete: sql-bench/Results/connect-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-create-mysql-3.21-Linux_2.2.1_i686~51581b24f45e0f5c: Delete: sql-bench/Results/create-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-insert-mysql-3.21-Linux_2.2.1_i686~fd082017c7c57a6: Delete: sql-bench/Results/insert-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-select-mysql-3.21-Linux_2.2.1_i686~ed3687e713ff0571: Delete: sql-bench/Results/select-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-wisconsin-mysql-3.21-Linux_2.2.1_i686~8147dc16a1dc6c47: Delete: sql-bench/Results/wisconsin-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-ATIS-mysql_3.21-Linux_2.0.35_i686~c25425e045ca8dfc: Delete: sql-bench/Results/ATIS-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-RUN-mysql_3.21-Linux_2.0.35_i686~ea8672d8473435: Delete: sql-bench/Results/RUN-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-alter-table-mysql_3.21-Linux_2.0.35_i686~762639f2560976bd: Delete: sql-bench/Results/alter-table-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-big-tables-mysql_3.21-Linux_2.0.35_i686~190e827e569c99a4: Delete: sql-bench/Results/big-tables-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-connect-mysql_3.21-Linux_2.0.35_i686~650abd213e6828c6: Delete: sql-bench/Results/connect-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-create-mysql_3.21-Linux_2.0.35_i686~df1b037d17b33587: Delete: sql-bench/Results/create-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-insert-mysql_3.21-Linux_2.0.35_i686~60c0965dff31db07: Delete: sql-bench/Results/insert-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-select-mysql_3.21-Linux_2.0.35_i686~5fadbac5f98696a: Delete: sql-bench/Results/select-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-wisconsin-mysql_3.21-Linux_2.0.35_i686~31703d40ea6b4f66: Delete: sql-bench/Results/wisconsin-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.10_i686~3fa4d167cceff7e8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.10_i686~712f52be5d195406: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.10_i686~93b78a85b720a186: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.10_i686~99daa1c5370d077d: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.10_i686~c92505d77e19d5ec: Delete: sql-bench/Results/connect-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.10_i686~9e7822f66df6aa76: Delete: sql-bench/Results/create-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.10_i686~763edf9aec633f51: Delete: sql-bench/Results/insert-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.10_i686~a2e264d777b787d: Delete: sql-bench/Results/select-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.10_i686~301a82b12a84922b: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-ATIS-mysql-win98~cd0705815d3af451: Delete: sql-bench/Results-win32/ATIS-mysql-win98 BitKeeper/deleted/.del-RUN-mysql-win98~7f09e396772a8665: Delete: sql-bench/Results-win32/RUN-mysql-win98 BitKeeper/deleted/.del-alter-table-mysql-win98~e8743982f790462: Delete: sql-bench/Results-win32/alter-table-mysql-win98 BitKeeper/deleted/.del-big-tables-mysql-win98~99a1882effebbdf2: Delete: sql-bench/Results-win32/big-tables-mysql-win98 BitKeeper/deleted/.del-connect-mysql-win98~2a11d5e3dfc0bc67: Delete: sql-bench/Results-win32/connect-mysql-win98 BitKeeper/deleted/.del-create-mysql-win98~f66c2cb2909c4792: Delete: sql-bench/Results-win32/create-mysql-win98 BitKeeper/deleted/.del-insert-mysql-win98~6d6cafc85a6c837: Delete: sql-bench/Results-win32/insert-mysql-win98 BitKeeper/deleted/.del-select-mysql-win98~f370fac2d66a9faf: Delete: sql-bench/Results-win32/select-mysql-win98 BitKeeper/deleted/.del-wisconsin-mysql-win98~8b3da9c5c5d2365b: Delete: sql-bench/Results-win32/wisconsin-mysql-win98 BUILD/compile-pentium-debug-max: Innobase -> Innodb BUILD/compile-pentium-max: Innobase -> Innodb Docs/manual.texi: Innobase -> Innodb acinclude.m4: Innobase -> Innodb bdb/Makefile.in: Fix that make clean works configure.in: Innobase -> Innodb mysql-test/include/have_innodb.inc: Innobase -> Innodb mysql-test/install_test_db.sh: Innobase -> Innodb mysql-test/mysql-test-run.sh: Innobase -> Innodb mysql-test/r/have_innodb.require: Innobase -> Innodb mysql-test/r/innodb.result: Innobase -> Innodb mysql-test/t/innodb.test: Innobase -> Innodb scripts/mysql_install_db.sh: Innobase -> Innodb scripts/mysqlhotcopy.sh: Remove some warnings sql-bench/server-cfg.sh: Innobase -> Innodb sql/Makefile.am: Innobase -> Innodb sql/ha_innobase.cc: Innobase -> Innodb sql/ha_innobase.h: Innobase -> Innodb sql/handler.cc: Innobase -> Innodb sql/mysqld.cc: Innobase -> Innodb sql/sql_delete.cc: Innobase -> Innodb support-files/my-huge.cnf.sh: Innobase -> Innodb support-files/my-large.cnf.sh: Innobase -> Innodb support-files/my-medium.cnf.sh: Innobase -> Innodb support-files/my-small.cnf.sh: Innobase -> Innodb support-files/mysql-max.spec.sh: Innobase -> Innodb support-files/mysql.spec.sh: Innobase -> Innodb tests/fork_big.pl: Added checking of whole database
2001-04-13 11:25:12 +02:00
#
# Help functions
#
sub signal_abort
{
my ($dbh);
$dbh = DBI->connect("DBI:mysql:$opt_db:$opt_host",
$opt_user, $opt_password,
{ PrintError => 0}) || die $DBI::errstr;
$dbh->do("insert into $abort_table values(1)") || die $DBI::errstr;
$dbh->disconnect; $dbh=0;
exit(0);
}
sub test_if_abort()
{
my ($dbh)=@_;
Changed Innobase to Innodb Deleted a lot of old benchmark runs BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_i686_xeon~3e820c28bf4af63a: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_i686_xeon~17854e751e1d9d1d: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_i686_xeon~64cc4b874cd6fabf: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_i686_xeon~290c2c3de9d8e6b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_i686_xeon~ea19dc3ec55b3618: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_i686_xeon~50d15991293030ef: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_i686_xeon~c683ee4b9d214298: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_i686_xeon~ead3f11b46ac626f: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_i686_xeon~7525b23938631801: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_i686_xeon BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.14_my_SMP_i686~d275df58a04737c8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.14_my_SMP_i686~d4766c7f8e70d7a2: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.14_my_SMP_i686~155a83b53c0e9d6: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.14_my_SMP_i686~f1127add9307098b: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.14_my_SMP_i686~45d2cdf9bea9cc37: Delete: sql-bench/Results/connect-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.14_my_SMP_i686~d46860c29c5d51ee: Delete: sql-bench/Results/create-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.14_my_SMP_i686~e1771e0a164bc310: Delete: sql-bench/Results/insert-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.14_my_SMP_i686~ee2a063d66a183d: Delete: sql-bench/Results/select-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.14_my_SMP_i686~b7552710d35202b6: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.14_my_SMP_i686 BitKeeper/deleted/.del-ATIS-mysql-3.21-Linux_2.2.1_i686~660fb76ed6ccfb6f: Delete: sql-bench/Results/ATIS-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-RUN-mysql-3.21-Linux_2.2.1_i686~f6fdd64859e11de9: Delete: sql-bench/Results/RUN-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-alter-table-mysql-3.21-Linux_2.2.1_i686~f6f7ccd7b3c35f97: Delete: sql-bench/Results/alter-table-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-big-tables-mysql-3.21-Linux_2.2.1_i686~baa649caba113497: Delete: sql-bench/Results/big-tables-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-connect-mysql-3.21-Linux_2.2.1_i686~c0c26d4320182d85: Delete: sql-bench/Results/connect-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-create-mysql-3.21-Linux_2.2.1_i686~51581b24f45e0f5c: Delete: sql-bench/Results/create-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-insert-mysql-3.21-Linux_2.2.1_i686~fd082017c7c57a6: Delete: sql-bench/Results/insert-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-select-mysql-3.21-Linux_2.2.1_i686~ed3687e713ff0571: Delete: sql-bench/Results/select-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-wisconsin-mysql-3.21-Linux_2.2.1_i686~8147dc16a1dc6c47: Delete: sql-bench/Results/wisconsin-mysql-3.21-Linux_2.2.1_i686 BitKeeper/deleted/.del-ATIS-mysql_3.21-Linux_2.0.35_i686~c25425e045ca8dfc: Delete: sql-bench/Results/ATIS-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-RUN-mysql_3.21-Linux_2.0.35_i686~ea8672d8473435: Delete: sql-bench/Results/RUN-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-alter-table-mysql_3.21-Linux_2.0.35_i686~762639f2560976bd: Delete: sql-bench/Results/alter-table-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-big-tables-mysql_3.21-Linux_2.0.35_i686~190e827e569c99a4: Delete: sql-bench/Results/big-tables-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-connect-mysql_3.21-Linux_2.0.35_i686~650abd213e6828c6: Delete: sql-bench/Results/connect-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-create-mysql_3.21-Linux_2.0.35_i686~df1b037d17b33587: Delete: sql-bench/Results/create-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-insert-mysql_3.21-Linux_2.0.35_i686~60c0965dff31db07: Delete: sql-bench/Results/insert-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-select-mysql_3.21-Linux_2.0.35_i686~5fadbac5f98696a: Delete: sql-bench/Results/select-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-wisconsin-mysql_3.21-Linux_2.0.35_i686~31703d40ea6b4f66: Delete: sql-bench/Results/wisconsin-mysql_3.21-Linux_2.0.35_i686 BitKeeper/deleted/.del-ATIS-mysql-Linux_2.2.10_i686~3fa4d167cceff7e8: Delete: sql-bench/Results/ATIS-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-RUN-mysql-Linux_2.2.10_i686~712f52be5d195406: Delete: sql-bench/Results/RUN-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-alter-table-mysql-Linux_2.2.10_i686~93b78a85b720a186: Delete: sql-bench/Results/alter-table-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-big-tables-mysql-Linux_2.2.10_i686~99daa1c5370d077d: Delete: sql-bench/Results/big-tables-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-connect-mysql-Linux_2.2.10_i686~c92505d77e19d5ec: Delete: sql-bench/Results/connect-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-create-mysql-Linux_2.2.10_i686~9e7822f66df6aa76: Delete: sql-bench/Results/create-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-insert-mysql-Linux_2.2.10_i686~763edf9aec633f51: Delete: sql-bench/Results/insert-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-select-mysql-Linux_2.2.10_i686~a2e264d777b787d: Delete: sql-bench/Results/select-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-wisconsin-mysql-Linux_2.2.10_i686~301a82b12a84922b: Delete: sql-bench/Results/wisconsin-mysql-Linux_2.2.10_i686 BitKeeper/deleted/.del-ATIS-mysql-win98~cd0705815d3af451: Delete: sql-bench/Results-win32/ATIS-mysql-win98 BitKeeper/deleted/.del-RUN-mysql-win98~7f09e396772a8665: Delete: sql-bench/Results-win32/RUN-mysql-win98 BitKeeper/deleted/.del-alter-table-mysql-win98~e8743982f790462: Delete: sql-bench/Results-win32/alter-table-mysql-win98 BitKeeper/deleted/.del-big-tables-mysql-win98~99a1882effebbdf2: Delete: sql-bench/Results-win32/big-tables-mysql-win98 BitKeeper/deleted/.del-connect-mysql-win98~2a11d5e3dfc0bc67: Delete: sql-bench/Results-win32/connect-mysql-win98 BitKeeper/deleted/.del-create-mysql-win98~f66c2cb2909c4792: Delete: sql-bench/Results-win32/create-mysql-win98 BitKeeper/deleted/.del-insert-mysql-win98~6d6cafc85a6c837: Delete: sql-bench/Results-win32/insert-mysql-win98 BitKeeper/deleted/.del-select-mysql-win98~f370fac2d66a9faf: Delete: sql-bench/Results-win32/select-mysql-win98 BitKeeper/deleted/.del-wisconsin-mysql-win98~8b3da9c5c5d2365b: Delete: sql-bench/Results-win32/wisconsin-mysql-win98 BUILD/compile-pentium-debug-max: Innobase -> Innodb BUILD/compile-pentium-max: Innobase -> Innodb Docs/manual.texi: Innobase -> Innodb acinclude.m4: Innobase -> Innodb bdb/Makefile.in: Fix that make clean works configure.in: Innobase -> Innodb mysql-test/include/have_innodb.inc: Innobase -> Innodb mysql-test/install_test_db.sh: Innobase -> Innodb mysql-test/mysql-test-run.sh: Innobase -> Innodb mysql-test/r/have_innodb.require: Innobase -> Innodb mysql-test/r/innodb.result: Innobase -> Innodb mysql-test/t/innodb.test: Innobase -> Innodb scripts/mysql_install_db.sh: Innobase -> Innodb scripts/mysqlhotcopy.sh: Remove some warnings sql-bench/server-cfg.sh: Innobase -> Innodb sql/Makefile.am: Innobase -> Innodb sql/ha_innobase.cc: Innobase -> Innodb sql/ha_innobase.h: Innobase -> Innodb sql/handler.cc: Innobase -> Innodb sql/mysqld.cc: Innobase -> Innodb sql/sql_delete.cc: Innobase -> Innodb support-files/my-huge.cnf.sh: Innobase -> Innodb support-files/my-large.cnf.sh: Innobase -> Innodb support-files/my-medium.cnf.sh: Innobase -> Innodb support-files/my-small.cnf.sh: Innobase -> Innodb support-files/mysql-max.spec.sh: Innobase -> Innodb support-files/mysql.spec.sh: Innobase -> Innodb tests/fork_big.pl: Added checking of whole database
2001-04-13 11:25:12 +02:00
$row=simple_query($dbh,"select * from $opt_db.$abort_table");
return (defined($row) && defined($row->[0]) != 0) ? 1 : 0;
}
sub make_count_query
{
my ($table_count)= @_;
my ($tables, $count_query, $i, $tables_def);
$tables="";
$count_query="select high_priority ";
$table_count--;
for ($i=0 ; $i < $table_count ; $i++)
{
my ($table_def)= $testtables[$i];
$tables.=$table_def->[0] . ",";
$count_query.= "max(" . $table_def->[0] . ".id),";
}
$table_def=$testtables[$table_count];
$tables.=$table_def->[0];
$count_query.= "max(" . $table_def->[0] . ".id) from $tables";
return $count_query;
}
sub simple_query()
{
my ($dbh, $query)= @_;
my ($sth,$row);
$sth=$dbh->prepare($query) || die "Got error on '$query': " . $dbh->errstr . "\n";
$sth->execute || die "Got error on '$query': " . $dbh->errstr . "\n";
$row= $sth->fetchrow_arrayref();
$sth=0;
return $row;
}