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
724f4f9d
Commit
724f4f9d
authored
Oct 19, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce dict_table_t::prepare_instant()
parent
5bb0259c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
193 additions
and
199 deletions
+193
-199
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+180
-195
storage/innobase/include/dict0mem.h
storage/innobase/include/dict0mem.h
+13
-4
No files found.
storage/innobase/handler/handler0alter.cc
View file @
724f4f9d
This diff is collapsed.
Click to expand it.
storage/innobase/include/dict0mem.h
View file @
724f4f9d
...
...
@@ -1614,11 +1614,20 @@ struct dict_table_t {
@return whether parsing the metadata failed */
bool
deserialise_columns
(
const
byte
*
metadata
,
ulint
len
);
/** Set is_instant() before instant_column().
@param[in] old previous table definition
@param[in] col_map map from old.cols[]
and old.v_cols[] to this
@param[out] first_alter_pos 0, or
1 + first changed column position */
inline
void
prepare_instant
(
const
dict_table_t
&
old
,
const
ulint
*
col_map
,
unsigned
&
first_alter_pos
);
/** Adjust table metadata for instant ADD/DROP/reorder COLUMN.
@param[in] table altered table (with dropped columns)
@param[in] map mapping from cols[] and v_cols[]
to table */
void
instant_column
(
const
dict_table_t
&
table
,
const
ulint
*
map
);
@param[in] table table on which prepare_instant() was invoked
@param[in] map mapping from cols[] and v_cols[] to table */
void
instant_column
(
const
dict_table_t
&
table
,
const
ulint
*
col_map
);
/** Roll back instant_column().
@param[in] old_n_cols original n_cols
...
...
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