Look for and "convert" paths that start with $MYSQL_TMP_DIR

parent b11c033f
...@@ -3093,8 +3093,10 @@ DYNAMIC_ARRAY patterns; ...@@ -3093,8 +3093,10 @@ DYNAMIC_ARRAY patterns;
static void init_win_path_patterns() static void init_win_path_patterns()
{ {
/* List of string patterns to match in order to find paths */ /* List of string patterns to match in order to find paths */
const char* paths[] = { "$MYSQL_TEST_DIR", "./test/", 0 }; const char* paths[] = { "$MYSQL_TEST_DIR",
int num_paths= 2; "$MYSQL_TMP_DIR",
"./test/", 0 };
int num_paths= 3;
int i; int i;
char* p; char* p;
......
...@@ -1117,6 +1117,7 @@ sub environment_setup () { ...@@ -1117,6 +1117,7 @@ sub environment_setup () {
$ENV{'USE_RUNNING_SERVER'}= $glob_use_running_server; $ENV{'USE_RUNNING_SERVER'}= $glob_use_running_server;
$ENV{'MYSQL_TEST_DIR'}= $glob_mysql_test_dir; $ENV{'MYSQL_TEST_DIR'}= $glob_mysql_test_dir;
$ENV{'MYSQLTEST_VARDIR'}= $opt_vardir; $ENV{'MYSQLTEST_VARDIR'}= $opt_vardir;
$ENV{'MYSQL_TMP_DIR'}= $opt_tmpdir;
$ENV{'MASTER_MYSOCK'}= $master->[0]->{'path_mysock'}; $ENV{'MASTER_MYSOCK'}= $master->[0]->{'path_mysock'};
$ENV{'MASTER_MYSOCK1'}= $master->[1]->{'path_mysock'}; $ENV{'MASTER_MYSOCK1'}= $master->[1]->{'path_mysock'};
$ENV{'MASTER_MYPORT'}= $master->[0]->{'path_myport'}; $ENV{'MASTER_MYPORT'}= $master->[0]->{'path_myport'};
......
...@@ -202,6 +202,7 @@ SYST=0 ...@@ -202,6 +202,7 @@ SYST=0
REALT=0 REALT=0
FAST_START="" FAST_START=""
MYSQL_TMP_DIR=$MYSQL_TEST_DIR/var/tmp MYSQL_TMP_DIR=$MYSQL_TEST_DIR/var/tmp
export MYSQL_TMP_DIR
# Use a relative path for where the slave will find the dumps # Use a relative path for where the slave will find the dumps
# generated by "LOAD DATA" on the master. The path is relative # generated by "LOAD DATA" on the master. The path is relative
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment