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
f8588915
Commit
f8588915
authored
Nov 05, 2008
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge and pre push fix for test of bug#37719
parents
8a544f2a
a470fd7b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
68 deletions
+37
-68
mysql-test/suite/parts/inc/partition_mgm.inc
mysql-test/suite/parts/inc/partition_mgm.inc
+0
-25
mysql-test/suite/parts/r/partition_mgm_lc0_archive.result
mysql-test/suite/parts/r/partition_mgm_lc0_archive.result
+36
-41
mysql-test/suite/parts/t/partition_mgm_lc0_archive.test
mysql-test/suite/parts/t/partition_mgm_lc0_archive.test
+0
-1
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+1
-1
No files found.
mysql-test/suite/parts/inc/partition_mgm.inc
View file @
f8588915
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
# part_optA-D Extra partitioning options (E.g. INDEX/DATA DIR) #
# part_optA-D Extra partitioning options (E.g. INDEX/DATA DIR) #
# #
# #
# have_bug33158 NDB case insensitive create, but case sensitive rename #
# have_bug33158 NDB case insensitive create, but case sensitive rename #
# have_bug37719 Archive, crash when rename and then select #
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# Original Author: mattiasj #
# Original Author: mattiasj #
# Original Date: 2008-06-27 #
# Original Date: 2008-06-27 #
...
@@ -125,18 +124,12 @@ PARTITION BY KEY (a)
...
@@ -125,18 +124,12 @@ PARTITION BY KEY (a)
PARTITION
PartD
$part_optD
);
PARTITION
PartD
$part_optD
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
SHOW
TABLES
;
SHOW
TABLES
;
if
(
!
$have_bug37719
)
{
RENAME
TABLE
TableA
to
tableA
;
RENAME
TABLE
TableA
to
tableA
;
}
--
sorted_result
--
sorted_result
SELECT
*
FROM
tablea
;
SELECT
*
FROM
tablea
;
if
(
!
$have_bug37719
)
{
--
sorted_result
--
sorted_result
SELECT
*
FROM
tableA
;
SELECT
*
FROM
tableA
;
RENAME
TABLE
tableA
to
TableA
;
RENAME
TABLE
tableA
to
TableA
;
}
SHOW
CREATE
TABLE
tablea
;
SHOW
CREATE
TABLE
tablea
;
DROP
TABLE
tablea
;
DROP
TABLE
tablea
;
}
}
...
@@ -262,18 +255,12 @@ PARTITION BY HASH (a)
...
@@ -262,18 +255,12 @@ PARTITION BY HASH (a)
PARTITION
PartD
$part_optD
);
PARTITION
PartD
$part_optD
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
SHOW
TABLES
;
SHOW
TABLES
;
if
(
!
$have_bug37719
)
{
RENAME
TABLE
TableA
to
tableA
;
RENAME
TABLE
TableA
to
tableA
;
}
--
sorted_result
--
sorted_result
SELECT
*
FROM
tablea
;
SELECT
*
FROM
tablea
;
if
(
!
$have_bug37719
)
{
--
sorted_result
--
sorted_result
SELECT
*
FROM
tableA
;
SELECT
*
FROM
tableA
;
RENAME
TABLE
tableA
to
TableA
;
RENAME
TABLE
tableA
to
TableA
;
}
SHOW
CREATE
TABLE
tablea
;
SHOW
CREATE
TABLE
tablea
;
DROP
TABLE
tablea
;
DROP
TABLE
tablea
;
}
}
...
@@ -388,18 +375,12 @@ PARTITION BY RANGE (a)
...
@@ -388,18 +375,12 @@ PARTITION BY RANGE (a)
PARTITION
PartD
VALUES
LESS
THAN
(
13
)
$part_optD
);
PARTITION
PartD
VALUES
LESS
THAN
(
13
)
$part_optD
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
SHOW
TABLES
;
SHOW
TABLES
;
if
(
!
$have_bug37719
)
{
RENAME
TABLE
TableA
to
tableA
;
RENAME
TABLE
TableA
to
tableA
;
}
--
sorted_result
--
sorted_result
SELECT
*
FROM
tablea
;
SELECT
*
FROM
tablea
;
if
(
!
$have_bug37719
)
{
--
sorted_result
--
sorted_result
SELECT
*
FROM
tableA
;
SELECT
*
FROM
tableA
;
RENAME
TABLE
tableA
to
TableA
;
RENAME
TABLE
tableA
to
TableA
;
}
SHOW
CREATE
TABLE
tablea
;
SHOW
CREATE
TABLE
tablea
;
DROP
TABLE
tablea
;
DROP
TABLE
tablea
;
}
}
...
@@ -516,18 +497,12 @@ PARTITION BY LIST (a)
...
@@ -516,18 +497,12 @@ PARTITION BY LIST (a)
PARTITION
PartD
VALUES
IN
(
5
,
6
,
12
)
$part_optD
);
PARTITION
PartD
VALUES
IN
(
5
,
6
,
12
)
$part_optD
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
INSERT
INTO
tablea
VALUES
(
1
),
(
2
),
(
7
),
(
8
),
(
9
),
(
10
);
SHOW
TABLES
;
SHOW
TABLES
;
if
(
!
$have_bug37719
)
{
RENAME
TABLE
TableA
to
tableA
;
RENAME
TABLE
TableA
to
tableA
;
}
--
sorted_result
--
sorted_result
SELECT
*
FROM
tablea
;
SELECT
*
FROM
tablea
;
if
(
!
$have_bug37719
)
{
--
sorted_result
--
sorted_result
SELECT
*
FROM
tableA
;
SELECT
*
FROM
tableA
;
RENAME
TABLE
tableA
to
TableA
;
RENAME
TABLE
tableA
to
TableA
;
}
SHOW
CREATE
TABLE
tablea
;
SHOW
CREATE
TABLE
tablea
;
DROP
TABLE
tablea
;
DROP
TABLE
tablea
;
}
}
...
...
mysql-test/suite/parts/r/partition_mgm_lc0_archive.result
View file @
f8588915
...
@@ -170,26 +170,30 @@ SHOW TABLES;
...
@@ -170,26 +170,30 @@ SHOW TABLES;
Tables_in_MySQL_Test_DB
Tables_in_MySQL_Test_DB
TableA
TableA
tablea
tablea
RENAME TABLE TableA to tableA;
SELECT * FROM tablea;
SELECT * FROM tablea;
a
a
1
1
1
10
10
2
7
8
9
SELECT * FROM tableA;
a
1
10
10
11
11
12
12
2
2
2
3
3
4
4
5
5
6
6
7
7
7
8
8
8
9
9
9
RENAME TABLE tableA to TableA;
SHOW CREATE TABLE tablea;
SHOW CREATE TABLE tablea;
Table Create Table
Table Create Table
tablea CREATE TABLE `tablea` (
tablea CREATE TABLE `tablea` (
...
@@ -206,7 +210,6 @@ ALTER TABLE TableA REMOVE PARTITIONING;
...
@@ -206,7 +210,6 @@ ALTER TABLE TableA REMOVE PARTITIONING;
SELECT * FROM TableA;
SELECT * FROM TableA;
a
a
1
1
1
10
10
11
11
12
12
...
@@ -216,10 +219,7 @@ a
...
@@ -216,10 +219,7 @@ a
5
5
6
6
7
7
7
8
8
8
9
9
9
SHOW CREATE TABLE TableA;
SHOW CREATE TABLE TableA;
Table Create Table
Table Create Table
...
@@ -406,26 +406,30 @@ SHOW TABLES;
...
@@ -406,26 +406,30 @@ SHOW TABLES;
Tables_in_MySQL_Test_DB
Tables_in_MySQL_Test_DB
TableA
TableA
tablea
tablea
RENAME TABLE TableA to tableA;
SELECT * FROM tablea;
SELECT * FROM tablea;
a
a
1
1
1
10
10
2
7
8
9
SELECT * FROM tableA;
a
1
10
10
11
11
12
12
2
2
2
3
3
4
4
5
5
6
6
7
7
7
8
8
8
9
9
9
RENAME TABLE tableA to TableA;
SHOW CREATE TABLE tablea;
SHOW CREATE TABLE tablea;
Table Create Table
Table Create Table
tablea CREATE TABLE `tablea` (
tablea CREATE TABLE `tablea` (
...
@@ -442,21 +446,16 @@ ALTER TABLE TableA REMOVE PARTITIONING;
...
@@ -442,21 +446,16 @@ ALTER TABLE TableA REMOVE PARTITIONING;
SELECT * FROM TableA;
SELECT * FROM TableA;
a
a
1
1
1
10
10
10
11
11
12
12
2
2
2
3
3
4
4
5
5
6
6
7
7
8
8
8
9
9
9
SHOW CREATE TABLE TableA;
SHOW CREATE TABLE TableA;
Table Create Table
Table Create Table
...
@@ -638,26 +637,30 @@ SHOW TABLES;
...
@@ -638,26 +637,30 @@ SHOW TABLES;
Tables_in_MySQL_Test_DB
Tables_in_MySQL_Test_DB
TableA
TableA
tablea
tablea
RENAME TABLE TableA to tableA;
SELECT * FROM tablea;
SELECT * FROM tablea;
a
a
1
1
1
10
10
2
7
8
9
SELECT * FROM tableA;
a
1
10
10
11
11
12
12
2
2
2
3
3
4
4
5
5
6
6
7
7
7
8
8
8
9
9
9
RENAME TABLE tableA to TableA;
SHOW CREATE TABLE tablea;
SHOW CREATE TABLE tablea;
Table Create Table
Table Create Table
tablea CREATE TABLE `tablea` (
tablea CREATE TABLE `tablea` (
...
@@ -674,23 +677,17 @@ ALTER TABLE TableA REMOVE PARTITIONING;
...
@@ -674,23 +677,17 @@ ALTER TABLE TableA REMOVE PARTITIONING;
SELECT * FROM TableA;
SELECT * FROM TableA;
a
a
1
1
1
10
10
10
11
11
12
12
2
2
2
3
3
4
4
5
5
6
6
7
7
7
8
8
8
9
9
9
SHOW CREATE TABLE TableA;
SHOW CREATE TABLE TableA;
Table Create Table
Table Create Table
TableA CREATE TABLE `TableA` (
TableA CREATE TABLE `TableA` (
...
@@ -866,23 +863,27 @@ SHOW TABLES;
...
@@ -866,23 +863,27 @@ SHOW TABLES;
Tables_in_MySQL_Test_DB
Tables_in_MySQL_Test_DB
TableA
TableA
tablea
tablea
RENAME TABLE TableA to tableA;
SELECT * FROM tablea;
SELECT * FROM tablea;
a
a
1
1
1
10
10
12
2
2
7
8
9
SELECT * FROM tableA;
a
1
12
3
3
4
4
5
5
6
6
7
7
7
8
8
8
9
9
9
RENAME TABLE tableA to TableA;
SHOW CREATE TABLE tablea;
SHOW CREATE TABLE tablea;
Table Create Table
Table Create Table
tablea CREATE TABLE `tablea` (
tablea CREATE TABLE `tablea` (
...
@@ -899,19 +900,13 @@ ALTER TABLE TableA REMOVE PARTITIONING;
...
@@ -899,19 +900,13 @@ ALTER TABLE TableA REMOVE PARTITIONING;
SELECT * FROM TableA;
SELECT * FROM TableA;
a
a
1
1
1
10
12
12
2
3
3
4
4
5
5
6
6
7
7
7
8
8
8
9
9
9
SHOW CREATE TABLE TableA;
SHOW CREATE TABLE TableA;
Table Create Table
Table Create Table
...
...
mysql-test/suite/parts/t/partition_mgm_lc0_archive.test
View file @
f8588915
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
# Engine specific settings and requirements
let
$have_bug37719
=
1
;
##### Storage engine to be tested
##### Storage engine to be tested
--
source
include
/
have_archive
.
inc
--
source
include
/
have_archive
.
inc
...
...
storage/archive/ha_archive.cc
View file @
f8588915
...
@@ -171,7 +171,7 @@ int archive_db_init(void *p)
...
@@ -171,7 +171,7 @@ int archive_db_init(void *p)
if
(
pthread_mutex_init
(
&
archive_mutex
,
MY_MUTEX_INIT_FAST
))
if
(
pthread_mutex_init
(
&
archive_mutex
,
MY_MUTEX_INIT_FAST
))
goto
error
;
goto
error
;
if
(
hash_init
(
&
archive_open_tables
,
system_charset_info
,
32
,
0
,
0
,
if
(
hash_init
(
&
archive_open_tables
,
table_alias_charset
,
32
,
0
,
0
,
(
hash_get_key
)
archive_get_key
,
0
,
0
))
(
hash_get_key
)
archive_get_key
,
0
,
0
))
{
{
VOID
(
pthread_mutex_destroy
(
&
archive_mutex
));
VOID
(
pthread_mutex_destroy
(
&
archive_mutex
));
...
...
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