From e69d8fb32a97cd7269f01ecc60b74f710e4a7c6b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 19 Apr 2001 20:41:19 +0300 Subject: Fix for BDB and LOCK TABLES BitKeeper/deleted/.del-ib_config.h.in~9e57db8504e55b7: Delete: innobase/ib_config.h.in BitKeeper/deleted/.del-ib_config.h~7539e26ffc614439: Delete: innobase/ib_config.h Docs/manual.texi: Changelog myisam/mi_locking.c: Cleanup mysql-test/r/bdb.result: Test for LOCK TABLES mysql-test/r/innodb.result: Test for LOCK TABLES mysql-test/t/bdb.test: Test for LOCK TABLES mysql-test/t/innodb.test: Test for LOCK TABLES sql-bench/test-insert.sh: Allow loop to be small sql/ha_berkeley.cc: Fixed bug when using LOCK TABLES with BDB sql/ha_berkeley.h: Fixed bug when using LOCK TABLES with BDB sql/handler.h: Fixed bug when using LOCK TABLES with BDB sql/sql_base.cc: Fixed bug when using LOCK TABLES with BDB sql/sql_parse.cc: UNLOCK TABLES ends transaction sql/sql_select.cc: Fix to not call index_end() twice --- sql-bench/test-insert.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sql-bench/test-insert.sh') diff --git a/sql-bench/test-insert.sh b/sql-bench/test-insert.sh index 0cb65cc8c88..82ffcd83487 100644 --- a/sql-bench/test-insert.sh +++ b/sql-bench/test-insert.sh @@ -39,11 +39,6 @@ $opt_read_key_loop_count=$opt_loop_count; chomp($pwd = `pwd`); $pwd = "." if ($pwd eq ''); require "$pwd/bench-init.pl" || die "Can't read Configuration file: $!\n"; -if ($opt_loop_count < 256) -{ - $opt_loop_count=256; # Some tests must have some data to work! -} - if ($opt_small_test) { $opt_loop_count/=100; @@ -62,6 +57,13 @@ elsif ($opt_small_key_tables) $many_keys_loop_count/=10; } +if ($opt_loop_count < 100) +{ + $opt_loop_count=100; # Some tests must have some data to work! +} +$range_loop_count=min($opt_loop_count,$range_loop_count); + + print "Testing the speed of inserting data into 1 table and do some selects on it.\n"; print "The tests are done with a table that has $opt_loop_count rows.\n\n"; -- cgit v1.2.1