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
87ffc592
Commit
87ffc592
authored
Sep 29, 2018
by
Thirunarayanan Balathandayuthapani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed few test case.
parent
71fdafb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
storage/innobase/dict/dict0mem.cc
storage/innobase/dict/dict0mem.cc
+1
-1
storage/innobase/include/dict0mem.h
storage/innobase/include/dict0mem.h
+14
-0
storage/innobase/row/row0log.cc
storage/innobase/row/row0log.cc
+5
-1
No files found.
storage/innobase/dict/dict0mem.cc
View file @
87ffc592
...
...
@@ -1410,7 +1410,7 @@ void dict_table_t::instant_column(const dict_table_t& table, const ulint* map)
for
(
unsigned
i
=
0
;
i
<
n_v_def
;
i
++
)
{
dict_v_col_t
&
v
=
v_cols
[
i
];
v
.
m_col
.
ind
=
map
[
v
.
m_col
.
ind
]
;
v
.
m_col
.
ind
=
v
.
m_col
.
ind
-
get_n_drop_cols
(
map
,
v
.
m_col
.
ind
)
;
for
(
ulint
n
=
v
.
num_base
;
n
--
;
)
{
dict_col_t
*&
base
=
v
.
base_col
[
n
];
...
...
storage/innobase/include/dict0mem.h
View file @
87ffc592
...
...
@@ -1633,6 +1633,20 @@ struct dict_table_t {
return
NULL
;
}
/** Get the n-drop columns till the given n_cols.
@param[in] n_cols number of old columns
@return number of drop columns */
static
unsigned
get_n_drop_cols
(
const
ulint
*
col_map
,
unsigned
n_cols
)
{
unsigned
n_drop_cols
=
0
;
for
(
ulint
i
=
0
;
i
<
n_cols
;
i
++
)
{
if
(
col_map
[
i
]
==
ULINT_UNDEFINED
)
{
n_drop_cols
++
;
}
}
return
n_drop_cols
;
}
/** Read the metadata blob and fill the non primary fields,
non-drop nullable fields and fill the drop columns in the
vector.
...
...
storage/innobase/row/row0log.cc
View file @
87ffc592
...
...
@@ -1559,11 +1559,15 @@ row_log_table_apply_convert_mrec(
const
dict_col_t
*
col
=
dict_field_get_col
(
ind_field
);
if
(
col
->
is_dropped
())
{
ut_ad
(
index
->
is_instant
());
continue
;
}
ulint
col_no
=
log
->
col_map
[
dict_col_get_no
(
col
)];
if
(
col_no
==
ULINT_UNDEFINED
)
{
/* dropped column */
continue
;
}
...
...
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