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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7ce5c00c
Commit
7ce5c00c
authored
Dec 10, 2008
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
500810d8
8f39d258
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 @
7ce5c00c
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)
partition by range (a)
subpartition by key (a)
...
...
mysql-test/t/partition_mgm.test
View file @
7ce5c00c
...
...
@@ -3,6 +3,17 @@
DROP
TABLE
IF
EXISTS
t1
;
--
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
# REORGANIZE command
...
...
sql/partition_info.cc
View file @
7ce5c00c
...
...
@@ -867,6 +867,7 @@ bool partition_info::check_partition_info(THD *thd, handlerton **eng_type,
if
(
part_type
!=
HASH_PARTITION
||
!
list_of_part_fields
)
{
DBUG_ASSERT
(
part_expr
);
err
=
part_expr
->
walk
(
&
Item
::
check_partition_func_processor
,
0
,
NULL
);
if
(
!
err
&&
is_sub_partitioned
()
&&
!
list_of_subpart_fields
)
...
...
sql/sql_partition.cc
View file @
7ce5c00c
...
...
@@ -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
without any changes at all.
*/
DBUG_RETURN
(
fast_end_partition
(
thd
,
ULL
(
0
),
ULL
(
0
),
table
,
NULL
,
TRUE
,
NULL
,
FALSE
));
*
fast_alter_partition
=
TRUE
;
DBUG_RETURN
(
FALSE
);
}
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