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
0bdb2a0c
Commit
0bdb2a0c
authored
Mar 05, 2007
by
Justin.He/justin.he@dev3-240.dev.cn.tlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#25877, After DROP INDEX non-indexed data isn't moved from memory into tablespace
parent
d4b29bf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+13
-0
No files found.
sql/ha_ndbcluster.cc
View file @
0bdb2a0c
...
...
@@ -10606,10 +10606,23 @@ bool ha_ndbcluster::check_if_incompatible_data(HA_CREATE_INFO *create_info,
int
pk
=
0
;
int
ai
=
0
;
if
(
create_info
->
tablespace
)
create_info
->
storage_media
=
HA_SM_DISK
;
else
create_info
->
storage_media
=
HA_SM_MEMORY
;
for
(
i
=
0
;
i
<
table
->
s
->
fields
;
i
++
)
{
Field
*
field
=
table
->
field
[
i
];
const
NDBCOL
*
col
=
tab
->
getColumn
(
i
);
if
(
col
->
getStorageType
()
==
NDB_STORAGETYPE_MEMORY
&&
create_info
->
storage_media
!=
HA_SM_MEMORY
||
col
->
getStorageType
()
==
NDB_STORAGETYPE_DISK
&&
create_info
->
storage_media
!=
HA_SM_DISK
)
{
DBUG_PRINT
(
"info"
,
(
"Column storage media is changed"
));
DBUG_RETURN
(
COMPATIBLE_DATA_NO
);
}
if
(
field
->
flags
&
FIELD_IS_RENAMED
)
{
DBUG_PRINT
(
"info"
,
(
"Field has been renamed, copy table"
));
...
...
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