Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ab862ca2
Commit
ab862ca2
authored
Oct 05, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use same --slave-load-tmpdir in all versions(backport from 5.0)
parent
c5fba0a8
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
17 deletions
+15
-17
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+0
-4
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+1
-1
mysql-test/r/rpl_loaddata.result
mysql-test/r/rpl_loaddata.result
+1
-1
mysql-test/r/rpl_loaddatalocal.result
mysql-test/r/rpl_loaddatalocal.result
+2
-2
mysql-test/r/rpl_log.result
mysql-test/r/rpl_log.result
+6
-6
mysql-test/t/rpl_loaddatalocal.test
mysql-test/t/rpl_loaddatalocal.test
+5
-3
No files found.
mysql-test/mysql-test-run.pl
View file @
ab862ca2
...
...
@@ -3153,10 +3153,6 @@ sub mysqld_arguments ($$$$$) {
# on the server. The path need to have constant length otherwise
# test results will vary, thus a relative path is used.
my
$slave_load_path
=
"
../tmp
";
if
(
$mysql_version_id
<
50000
)
{
$slave_load_path
=
"
../../var/tmp
";
}
mtr_add_arg
(
$args
,
"
%s--slave-load-tmpdir=%s
",
$prefix
,
$slave_load_path
);
mtr_add_arg
(
$args
,
"
%s--socket=%s
",
$prefix
,
...
...
mysql-test/mysql-test-run.sh
View file @
ab862ca2
...
...
@@ -188,7 +188,7 @@ SYST=0
REALT
=
0
FAST_START
=
""
MYSQL_TMP_DIR
=
$MYSQL_TEST_DIR
/var/tmp
SLAVE_LOAD_TMPDIR
=
../
../var/
tmp
#needs to be same length to test logging
SLAVE_LOAD_TMPDIR
=
../tmp
#needs to be same length to test logging
RES_SPACE
=
" "
MYSQLD_SRC_DIRS
=
"strings mysys include extra regex isam merge myisam
\
myisammrg heap sql"
...
...
mysql-test/r/rpl_loaddata.result
View file @
ab862ca2
...
...
@@ -22,7 +22,7 @@ day id category name
2003-03-22 2416 a bbbbb
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
slave-bin.000001 9
64
slave-bin.000001 9
50
drop table t1;
drop table t2;
drop table t3;
...
...
mysql-test/r/rpl_loaddatalocal.result
View file @
ab862ca2
...
...
@@ -5,9 +5,9 @@ reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
create table t1(a int);
select * into outfile '
../../var
/master-data/rpl_loaddatalocal.select_outfile' from t1;
select * into outfile '
MYSQLTEST_VARDIR
/master-data/rpl_loaddatalocal.select_outfile' from t1;
truncate table t1;
load data local infile '
./var
/master-data/rpl_loaddatalocal.select_outfile' into table t1;
load data local infile '
MYSQLTEST_VARDIR
/master-data/rpl_loaddatalocal.select_outfile' into table t1;
select a,count(*) from t1 group by a;
a count(*)
1 10000
...
...
mysql-test/r/rpl_log.result
View file @
ab862ca2
...
...
@@ -73,7 +73,7 @@ master-bin.000002 276
start slave;
show binary logs;
Log_name File_size
slave-bin.000001 12
85
slave-bin.000001 12
78
slave-bin.000002 170
show binlog events in 'slave-bin.000001' from 4;
Log_name Pos Event_type Server_id Orig_log_pos Info
...
...
@@ -84,11 +84,11 @@ slave-bin.000001 200 Query 1 200 use `test`; insert into t1 values (NULL)
slave-bin.000001 263 Query 1 263 use `test`; drop table t1
slave-bin.000001 311 Query 1 311 use `test`; create table t1 (word char(20) not null)
slave-bin.000001 386 Create_file 1 386 db=test;table=t1;file_id=1;block_len=581
slave-bin.000001 10
65 Exec_load 1 1065
;file_id=1
slave-bin.000001 108
8 Query 1 1088
use `test`; drop table t1
slave-bin.000001 11
36 Query 1 1136
use `test`; create table t5 (a int)
slave-bin.000001 11
94 Query 1 1194
use `test`; drop table t5
slave-bin.000001 12
42 Rotate 2 1242
slave-bin.000002;pos=4
slave-bin.000001 10
58 Exec_load 1 1058
;file_id=1
slave-bin.000001 108
1 Query 1 1081
use `test`; drop table t1
slave-bin.000001 11
29 Query 1 1129
use `test`; create table t5 (a int)
slave-bin.000001 11
87 Query 1 1187
use `test`; drop table t5
slave-bin.000001 12
35 Rotate 2 1235
slave-bin.000002;pos=4
show binlog events in 'slave-bin.000002' from 4;
Log_name Pos Event_type Server_id Orig_log_pos Info
slave-bin.000002 4 Query 1 4 use `test`; create table t1 (n int)
...
...
mysql-test/t/rpl_loaddatalocal.test
View file @
ab862ca2
...
...
@@ -20,11 +20,13 @@ while ($1)
}
set
SQL_LOG_BIN
=
1
;
enable_query_log
;
select
*
into
outfile
'../../var/master-data/rpl_loaddatalocal.select_outfile'
from
t1
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
select
*
into
outfile
'$MYSQLTEST_VARDIR/master-data/rpl_loaddatalocal.select_outfile'
from
t1
;
#This will generate a 20KB file, now test LOAD DATA LOCAL
truncate
table
t1
;
load
data
local
infile
'./var/master-data/rpl_loaddatalocal.select_outfile'
into
table
t1
;
system
rm
./
var
/
master
-
data
/
rpl_loaddatalocal
.
select_outfile
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
load
data
local
infile
'$MYSQLTEST_VARDIR/master-data/rpl_loaddatalocal.select_outfile'
into
table
t1
;
--
remove_file
$MYSQLTEST_VARDIR
/
master
-
data
/
rpl_loaddatalocal
.
select_outfile
save_master_pos
;
connection
slave
;
sync_with_master
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment