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
50ce511b
Commit
50ce511b
authored
Feb 28, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #17499 Alter table of ndb partitioned tables causes mysqld to core
- moved used_partitions initialization
parent
b203771e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+6
-1
sql/sql_table.cc
sql/sql_table.cc
+0
-2
No files found.
sql/ha_ndbcluster.cc
View file @
50ce511b
...
@@ -3381,8 +3381,13 @@ int ha_ndbcluster::extra(enum ha_extra_function operation)
...
@@ -3381,8 +3381,13 @@ int ha_ndbcluster::extra(enum ha_extra_function operation)
DBUG_PRINT
(
"info"
,
(
"HA_EXTRA_RESET"
));
DBUG_PRINT
(
"info"
,
(
"HA_EXTRA_RESET"
));
DBUG_PRINT
(
"info"
,
(
"Clearing condition stack"
));
DBUG_PRINT
(
"info"
,
(
"Clearing condition stack"
));
cond_clear
();
cond_clear
();
/*
* Regular partition pruning will set the bitmap appropriately.
* Some queries like ALTER TABLE doesn't use partition pruning and
* thus the 'used_partitions' bitmap needs to be initialized
*/
if
(
m_part_info
)
if
(
m_part_info
)
bitmap_
clear
_all
(
&
m_part_info
->
used_partitions
);
bitmap_
set
_all
(
&
m_part_info
->
used_partitions
);
break
;
break
;
case
HA_EXTRA_IGNORE_DUP_KEY
:
/* Dup keys don't rollback everything*/
case
HA_EXTRA_IGNORE_DUP_KEY
:
/* Dup keys don't rollback everything*/
DBUG_PRINT
(
"info"
,
(
"HA_EXTRA_IGNORE_DUP_KEY"
));
DBUG_PRINT
(
"info"
,
(
"HA_EXTRA_IGNORE_DUP_KEY"
));
...
...
sql/sql_table.cc
View file @
50ce511b
...
@@ -5200,8 +5200,6 @@ copy_data_between_tables(TABLE *from,TABLE *to,
...
@@ -5200,8 +5200,6 @@ copy_data_between_tables(TABLE *from,TABLE *to,
*/
*/
to
->
file
->
ha_set_all_bits_in_write_set
();
to
->
file
->
ha_set_all_bits_in_write_set
();
from
->
file
->
ha_retrieve_all_cols
();
from
->
file
->
ha_retrieve_all_cols
();
if
(
from
->
part_info
)
bitmap_set_all
(
&
(
from
->
part_info
->
used_partitions
));
init_read_record
(
&
info
,
thd
,
from
,
(
SQL_SELECT
*
)
0
,
1
,
1
);
init_read_record
(
&
info
,
thd
,
from
,
(
SQL_SELECT
*
)
0
,
1
,
1
);
if
(
ignore
||
if
(
ignore
||
handle_duplicates
==
DUP_REPLACE
)
handle_duplicates
==
DUP_REPLACE
)
...
...
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