summaryrefslogtreecommitdiff
path: root/sql-bench/test-select.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sql-bench/test-select.sh')
-rwxr-xr-xsql-bench/test-select.sh12
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");
}
####