diff options
Diffstat (limited to 'sql-bench/test-select.sh')
-rwxr-xr-x | sql-bench/test-select.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sql-bench/test-select.sh b/sql-bench/test-select.sh index 21a5b2307c9..160a10a1c33 100755 --- a/sql-bench/test-select.sh +++ b/sql-bench/test-select.sh @@ -109,9 +109,19 @@ $end_time=new Benchmark; print "Time to insert ($opt_loop_count): " . timestr(timediff($end_time, $loop_time),"all") . "\n\n"; +if ($opt_lock_tables) +{ + do_query($dbh,"UNLOCK TABLES"); +} + if ($opt_fast && defined($server->{vacuum})) { - $server->vacuum(0,\$dbh); + $server->vacuum(0,\$dbh,"bench1"); +} + +if ($opt_lock_tables) +{ + do_query($dbh,"LOCK TABLES bench1 WRITE"); } #### |