From 2430d73ce68d0c64016f88f98431e0a67a19e97f Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Oct 2006 20:21:11 +0200 Subject: [PATCH] Make use of $opt_mem" and let 4.1 allow --vardir to be set. Still relies on the var/ directory but having it on tmpfs gives a big speedup. mysql-test/mysql-test-run.pl: Make use of opt_mem and let 4.1 allow vardir to be set. Still relies on the var/ directory but having it on tmpfs gives a big speedup. --- mysql-test/mysql-test-run.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 51989f02f0e..7778b99ea65 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -754,7 +754,10 @@ sub command_line_setup () { elsif ( $mysql_version_id < 50000 ) { # --vardir was specified - mtr_error("--vardir option not supported until MySQL 5.0"); + # It's only supported in 4.1 as a symlink from var/ + # by setting up $opt_mem that will be created + $opt_mem= $opt_vardir; + $opt_vardir= undef; } $path_vardir_trace= $opt_vardir;