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
0763f5e7
Commit
0763f5e7
authored
May 30, 2006
by
ngrishakin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed partitions from ndb_dd_backuprestore test
parent
10719727
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
510 deletions
+0
-510
mysql-test/r/ndb_dd_backuprestore.result
mysql-test/r/ndb_dd_backuprestore.result
+0
-330
mysql-test/t/ndb_dd_backuprestore.test
mysql-test/t/ndb_dd_backuprestore.test
+0
-180
No files found.
mysql-test/r/ndb_dd_backuprestore.result
View file @
0763f5e7
This diff is collapsed.
Click to expand it.
mysql-test/t/ndb_dd_backuprestore.test
View file @
0763f5e7
...
...
@@ -159,185 +159,5 @@ DROP TABLE test.t1;
DROP
TABLE
test
.
t2
;
DROP
TABLE
test
.
t3
;
DROP
TABLE
test
.
t4
;
###################### Adding partition #################################
--
echo
****
Test
3
Adding
partition
Test
backup
and
restore
****
CREATE
TABLESPACE
table_space2
ADD
DATAFILE
'./table_space2/datafile.dat'
USE
LOGFILE
GROUP log_group1
INITIAL_SIZE 12M
ENGINE NDB
;
CREATE
TABLE
test
.
t1
(
pk1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
VARCHAR
(
150
)
NOT
NULL
,
c3
INT
NOT
NULL
,
c4
BIT
NOT
NULL
,
PRIMARY
KEY
(
pk1
,
c3
))
TABLESPACE
table_space1
STORAGE
DISK
ENGINE
=
NDB
PARTITION
BY
HASH
(
c3
)
PARTITIONS
4
;
CREATE
TABLE
test
.
t4
(
pk1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
VARCHAR
(
180
)
NOT
NULL
,
c3
INT
NOT
NULL
,
c4
BIT
NOT
NULL
,
PRIMARY
KEY
(
pk1
,
c3
))
ENGINE
=
NDB
PARTITION
BY
HASH
(
c3
)
PARTITIONS
2
;
CREATE
TABLE
test
.
t2
(
pk1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
TEXT
NOT
NULL
,
c3
INT
NOT
NULL
,
c4
BIT
NOT
NULL
,
PRIMARY
KEY
(
pk1
,
c3
))
TABLESPACE
table_space2
STORAGE
DISK
ENGINE
=
NDB
PARTITION
BY
KEY
(
c3
)
(
PARTITION
p0
ENGINE
=
NDB
,
PARTITION
p1
ENGINE
=
NDB
);
CREATE
TABLE
test
.
t5
(
pk1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
TEXT
NOT
NULL
,
c3
INT
NOT
NULL
,
c4
BIT
NOT
NULL
,
PRIMARY
KEY
(
pk1
,
c3
))
ENGINE
=
NDB
PARTITION
BY
KEY
(
pk1
)
(
PARTITION
p0
ENGINE
=
NDB
,
PARTITION
p1
ENGINE
=
NDB
);
CREATE
TABLE
test
.
t3
(
pk1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
VARCHAR
(
202
)
NOT
NULL
,
c3
INT
NOT
NULL
,
c4
BIT
NOT
NULL
,
PRIMARY
KEY
(
pk1
,
c3
))
TABLESPACE
table_space2
STORAGE
DISK
ENGINE
=
NDB
PARTITION
BY
RANGE
(
c3
)
PARTITIONS
3
(
PARTITION
x1
VALUES
LESS
THAN
(
105
),
PARTITION
x2
VALUES
LESS
THAN
(
333
),
PARTITION
x3
VALUES
LESS
THAN
(
720
));
CREATE
TABLE
test
.
t6
(
pk1
MEDIUMINT
NOT
NULL
AUTO_INCREMENT
,
c2
VARCHAR
(
220
)
NOT
NULL
,
c3
INT
NOT
NULL
,
c4
BIT
NOT
NULL
,
PRIMARY
KEY
(
pk1
,
c3
))
ENGINE
=
NDB
PARTITION
BY
RANGE
(
pk1
)
PARTITIONS
2
(
PARTITION
x1
VALUES
LESS
THAN
(
333
),
PARTITION
x2
VALUES
LESS
THAN
(
720
));
SHOW
CREATE
TABLE
test
.
t1
;
SHOW
CREATE
TABLE
test
.
t2
;
SHOW
CREATE
TABLE
test
.
t3
;
SHOW
CREATE
TABLE
test
.
t4
;
SHOW
CREATE
TABLE
test
.
t5
;
SHOW
CREATE
TABLE
test
.
t6
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't1'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't2'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't3'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't4'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't5'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't6'
;
let
$j
=
500
;
--
disable_query_log
while
(
$j
)
{
eval
INSERT
INTO
test
.
t1
VALUES
(
NULL
,
"Sweden, Texas"
,
$j
,
b
'0'
);
eval
INSERT
INTO
test
.
t4
VALUES
(
NULL
,
"Sweden, Texas"
,
$j
,
b
'0'
);
dec
$j
;
eval
INSERT
INTO
test
.
t2
VALUES
(
NULL
,
"Sweden, Texas, ITALY, Kyle, JO, JBM,TU"
,
$j
,
b
'1'
);
eval
INSERT
INTO
test
.
t5
VALUES
(
NULL
,
"Sweden, Texas, ITALY, Kyle, JO, JBM,TU"
,
$j
,
b
'1'
);
dec
$j
;
eval
INSERT
INTO
test
.
t3
VALUES
(
NULL
,
"TEXASTEXASTEXASTEXASTEXASTEXASTEXASTEXASTEXASTEXAS, ITALY, Kyle, JO, JBM,TU"
,
$j
,
b
'1'
);
eval
INSERT
INTO
test
.
t6
VALUES
(
NULL
,
"TEXASTEXASTEXASTEXASTEXASTEXASTEXASTEXASTEXASTEXAS, ITALY, Kyle, JO, JBM,TU"
,
$j
,
b
'1'
);
}
--
enable_query_log
SELECT
COUNT
(
*
)
FROM
test
.
t1
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t1
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t2
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t2
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t3
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t3
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t4
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t4
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t5
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t5
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t6
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t6
ORDER
BY
c3
LIMIT
5
;
--
source
include
/
ndb_backup
.
inc
DROP
TABLE
test
.
t1
;
DROP
TABLE
test
.
t2
;
DROP
TABLE
test
.
t3
;
DROP
TABLE
test
.
t4
;
DROP
TABLE
test
.
t5
;
DROP
TABLE
test
.
t6
;
ALTER
TABLESPACE
table_space1
DROP
DATAFILE
'./table_space1/datafile.dat'
ENGINE
=
NDB
;
ALTER
TABLESPACE
table_space2
DROP
DATAFILE
'./table_space2/datafile.dat'
ENGINE
=
NDB
;
DROP
TABLESPACE
table_space1
ENGINE
=
NDB
;
DROP
TABLESPACE
table_space2
ENGINE
=
NDB
;
DROP
LOGFILE
GROUP
log_group1
ENGINE
=
NDB
;
--
source
include
/
ndb_restore_master
.
inc
SHOW
CREATE
TABLE
test
.
t1
;
SHOW
CREATE
TABLE
test
.
t2
;
SHOW
CREATE
TABLE
test
.
t3
;
SHOW
CREATE
TABLE
test
.
t4
;
SHOW
CREATE
TABLE
test
.
t5
;
SHOW
CREATE
TABLE
test
.
t6
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't1'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't2'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't3'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't4'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't5'
;
SELECT
*
FROM
information_schema
.
partitions
WHERE
table_name
=
't6'
;
SELECT
COUNT
(
*
)
FROM
test
.
t1
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t1
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t2
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t2
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t3
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t3
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t4
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t4
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t5
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t5
ORDER
BY
c3
LIMIT
5
;
SELECT
COUNT
(
*
)
FROM
test
.
t6
;
SELECT
pk1
,
c2
,
c3
,
hex
(
c4
)
FROM
test
.
t6
ORDER
BY
c3
LIMIT
5
;
# Cleanup
DROP
TABLE
test
.
t1
;
DROP
TABLE
test
.
t2
;
DROP
TABLE
test
.
t3
;
DROP
TABLE
test
.
t4
;
DROP
TABLE
test
.
t5
;
DROP
TABLE
test
.
t6
;
ALTER
TABLESPACE
table_space1
DROP
DATAFILE
'./table_space1/datafile.dat'
ENGINE
=
NDB
;
ALTER
TABLESPACE
table_space2
DROP
DATAFILE
'./table_space2/datafile.dat'
ENGINE
=
NDB
;
DROP
TABLESPACE
table_space1
ENGINE
=
NDB
;
DROP
TABLESPACE
table_space2
ENGINE
=
NDB
;
DROP
LOGFILE
GROUP
log_group1
ENGINE
=
NDB
;
#End 5.1 test case
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