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
db4966f9
Commit
db4966f9
authored
Oct 06, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update partition test to use the new command "file_exist"
parent
1f8ac39a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
50 deletions
+38
-50
mysql-test/r/partition.result
mysql-test/r/partition.result
+5
-31
mysql-test/t/partition.test
mysql-test/t/partition.test
+33
-19
No files found.
mysql-test/r/partition.result
View file @
db4966f9
...
...
@@ -1132,41 +1132,15 @@ drop table t1;
create table t1 (a int) engine myisam
partition by range (a)
subpartition by hash (a)
(partition p0 VALUES LESS THAN (1) DATA DIRECTORY = '
hello/master-data/tmpdata' INDEX DIRECTORY = 'hello
/master-data/tmpinx'
(partition p0 VALUES LESS THAN (1) DATA DIRECTORY = '
MYSQLTEST_VARDIR/master-data/tmpdata' INDEX DIRECTORY = 'MYSQLTEST_VARDIR
/master-data/tmpinx'
(SUBPARTITION subpart00, SUBPARTITION subpart01));
hello/master-data/test/t1.frm
hello/master-data/test/t1.par
hello/master-data/test/t1#P#p0#SP#subpart00.MYD
hello/master-data/test/t1#P#p0#SP#subpart00.MYI
hello/master-data/test/t1#P#p0#SP#subpart01.MYD
hello/master-data/test/t1#P#p0#SP#subpart01.MYI
hello/master-data/tmpdata/t1#P#p0#SP#subpart00.MYD
hello/master-data/tmpdata/t1#P#p0#SP#subpart01.MYD
hello/master-data/tmpinx/t1#P#p0#SP#subpart00.MYI
hello/master-data/tmpinx/t1#P#p0#SP#subpart01.MYI
Checking if file exists before alter
ALTER TABLE t1 REORGANIZE PARTITION p0 INTO
(partition p1 VALUES LESS THAN (1) DATA DIRECTORY = '
hello/master-data/tmpdata' INDEX DIRECTORY = 'hello
/master-data/tmpinx'
(partition p1 VALUES LESS THAN (1) DATA DIRECTORY = '
MYSQLTEST_VARDIR/master-data/tmpdata' INDEX DIRECTORY = 'MYSQLTEST_VARDIR
/master-data/tmpinx'
(SUBPARTITION subpart10, SUBPARTITION subpart11),
partition p2 VALUES LESS THAN (2) DATA DIRECTORY = '
hello/master-data/tmpdata' INDEX DIRECTORY = 'hello
/master-data/tmpinx'
partition p2 VALUES LESS THAN (2) DATA DIRECTORY = '
MYSQLTEST_VARDIR/master-data/tmpdata' INDEX DIRECTORY = 'MYSQLTEST_VARDIR
/master-data/tmpinx'
(SUBPARTITION subpart20, SUBPARTITION subpart21));
hello/master-data/test/t1.frm
hello/master-data/test/t1.par
hello/master-data/test/t1#P#p1#SP#subpart10.MYD
hello/master-data/test/t1#P#p1#SP#subpart10.MYI
hello/master-data/test/t1#P#p1#SP#subpart11.MYD
hello/master-data/test/t1#P#p1#SP#subpart11.MYI
hello/master-data/test/t1#P#p2#SP#subpart20.MYD
hello/master-data/test/t1#P#p2#SP#subpart20.MYI
hello/master-data/test/t1#P#p2#SP#subpart21.MYD
hello/master-data/test/t1#P#p2#SP#subpart21.MYI
hello/master-data/tmpdata/t1#P#p1#SP#subpart10.MYD
hello/master-data/tmpdata/t1#P#p1#SP#subpart11.MYD
hello/master-data/tmpdata/t1#P#p2#SP#subpart20.MYD
hello/master-data/tmpdata/t1#P#p2#SP#subpart21.MYD
hello/master-data/tmpinx/t1#P#p1#SP#subpart10.MYI
hello/master-data/tmpinx/t1#P#p1#SP#subpart11.MYI
hello/master-data/tmpinx/t1#P#p2#SP#subpart20.MYI
hello/master-data/tmpinx/t1#P#p2#SP#subpart21.MYI
Checking if file exists after alter
drop table t1;
create table t1 (a bigint unsigned not null, primary key(a))
engine = myisam
...
...
mysql-test/t/partition.test
View file @
db4966f9
...
...
@@ -1332,37 +1332,51 @@ eval SET @inx_dir = 'INDEX DIRECTORY = ''$MYSQLTEST_VARDIR/master-data/tmpinx'''
let
$inx_directory
=
`select @inx_dir`
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
create
table
t1
(
a
int
)
engine
myisam
partition
by
range
(
a
)
subpartition
by
hash
(
a
)
(
partition
p0
VALUES
LESS
THAN
(
1
)
$data_directory
$inx_directory
(
SUBPARTITION
subpart00
,
SUBPARTITION
subpart01
));
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.*
||
true
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#* || true
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#* || true
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#* || true
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
echo
Checking
if
file
exists
before
alter
--
file_exist
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
frm
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
par
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart00.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart00.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart01.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p0#SP#subpart01.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p0#SP#subpart00.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p0#SP#subpart01.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p0#SP#subpart00.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p0#SP#subpart01.MYI
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
ALTER
TABLE
t1
REORGANIZE
PARTITION
p0
INTO
(
partition
p1
VALUES
LESS
THAN
(
1
)
$data_directory
$inx_directory
(
SUBPARTITION
subpart10
,
SUBPARTITION
subpart11
),
partition
p2
VALUES
LESS
THAN
(
2
)
$data_directory
$inx_directory
(
SUBPARTITION
subpart20
,
SUBPARTITION
subpart21
));
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.*
||
true
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#* || true
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#* || true
--
replace_result
$MYSQLTEST_VARDIR
"hello"
--
exec
ls
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#* || true
--
echo
Checking
if
file
exists
after
alter
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
frm
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
.
par
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart10.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart10.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart11.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p1#SP#subpart11.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart20.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart20.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart21.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
t1
#P#p2#SP#subpart21.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p1#SP#subpart10.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p1#SP#subpart11.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p2#SP#subpart20.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
/
t1
#P#p2#SP#subpart21.MYD
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p1#SP#subpart10.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p1#SP#subpart11.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p2#SP#subpart20.MYI
--
file_exists
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpinx
/
t1
#P#p2#SP#subpart21.MYI
drop
table
t1
;
--
exec
rmdir
$MYSQLTEST_VARDIR
/
master
-
data
/
tmpdata
||
true
...
...
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