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
9cb4c720
Commit
9cb4c720
authored
Dec 10, 2008
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
e2fef3d1
6538f19f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
mysql-test/r/partition_mgm.result
mysql-test/r/partition_mgm.result
+7
-0
mysql-test/t/partition_mgm.test
mysql-test/t/partition_mgm.test
+11
-0
sql/partition_info.cc
sql/partition_info.cc
+1
-0
sql/sql_partition.cc
sql/sql_partition.cc
+2
-3
No files found.
mysql-test/r/partition_mgm.result
View file @
9cb4c720
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a INT PRIMARY KEY)
ENGINE MYISAM
PARTITION BY HASH (a)
PARTITIONS 1;
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
ALTER TABLE t1 REORGANIZE PARTITION;
DROP TABLE t1;
create table t1 (a int)
create table t1 (a int)
partition by range (a)
partition by range (a)
subpartition by key (a)
subpartition by key (a)
...
...
mysql-test/t/partition_mgm.test
View file @
9cb4c720
...
@@ -3,6 +3,17 @@
...
@@ -3,6 +3,17 @@
DROP
TABLE
IF
EXISTS
t1
;
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
--
enable_warnings
#
# Bug 40389: REORGANIZE PARTITION crashes when only using one partition
#
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
)
ENGINE
MYISAM
PARTITION
BY
HASH
(
a
)
PARTITIONS
1
;
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
);
ALTER
TABLE
t1
REORGANIZE
PARTITION
;
DROP
TABLE
t1
;
#
#
# Bug 21143: mysqld hang when error in number of subparts in
# Bug 21143: mysqld hang when error in number of subparts in
# REORGANIZE command
# REORGANIZE command
...
...
sql/partition_info.cc
View file @
9cb4c720
...
@@ -867,6 +867,7 @@ bool partition_info::check_partition_info(THD *thd, handlerton **eng_type,
...
@@ -867,6 +867,7 @@ bool partition_info::check_partition_info(THD *thd, handlerton **eng_type,
if
(
part_type
!=
HASH_PARTITION
||
!
list_of_part_fields
)
if
(
part_type
!=
HASH_PARTITION
||
!
list_of_part_fields
)
{
{
DBUG_ASSERT
(
part_expr
);
err
=
part_expr
->
walk
(
&
Item
::
check_partition_func_processor
,
0
,
err
=
part_expr
->
walk
(
&
Item
::
check_partition_func_processor
,
0
,
NULL
);
NULL
);
if
(
!
err
&&
is_sub_partitioned
()
&&
!
list_of_subpart_fields
)
if
(
!
err
&&
is_sub_partitioned
()
&&
!
list_of_subpart_fields
)
...
...
sql/sql_partition.cc
View file @
9cb4c720
...
@@ -4233,9 +4233,8 @@ uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info,
...
@@ -4233,9 +4233,8 @@ uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info,
after the change as before. Thus we can reply ok immediately
after the change as before. Thus we can reply ok immediately
without any changes at all.
without any changes at all.
*/
*/
DBUG_RETURN
(
fast_end_partition
(
thd
,
ULL
(
0
),
ULL
(
0
),
*
fast_alter_partition
=
TRUE
;
table
,
NULL
,
DBUG_RETURN
(
FALSE
);
TRUE
,
NULL
,
FALSE
));
}
}
else
if
(
new_part_no
>
curr_part_no
)
else
if
(
new_part_no
>
curr_part_no
)
{
{
...
...
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