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
146fe8c1
Commit
146fe8c1
authored
Sep 23, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce the dtuple_t::info_bits constant REC_INFO_DEFAULT_ROW
parent
acd66eed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+1
-1
storage/innobase/include/rem0rec.h
storage/innobase/include/rem0rec.h
+5
-0
storage/innobase/row/row0ins.cc
storage/innobase/row/row0ins.cc
+1
-2
storage/innobase/trx/trx0rec.cc
storage/innobase/trx/trx0rec.cc
+2
-4
No files found.
storage/innobase/handler/handler0alter.cc
View file @
146fe8c1
...
...
@@ -4347,7 +4347,7 @@ innobase_add_instant_try(
pars_info_add_int4_literal
(
info
,
"id"
,
user_table
->
id
);
dtuple_t
*
entry
=
row_build_index_entry
(
row
,
NULL
,
index
,
ctx
->
heap
);
entry
->
info_bits
=
REC_INFO_
MIN_REC_FLAG
|
REC_STATUS_COLUMNS_ADDED
;
entry
->
info_bits
=
REC_INFO_
DEFAULT_ROW
;
dberr_t
err
=
que_eval_sql
(
info
,
...
...
storage/innobase/include/rem0rec.h
View file @
146fe8c1
...
...
@@ -70,6 +70,11 @@ enum rec_comp_status_t {
REC_STATUS_COLUMNS_ADDED
=
4
};
/** The dtuple_t::info_bits of the 'default row' record.
@see rec_is_default_row() */
static
const
byte
REC_INFO_DEFAULT_ROW
=
REC_INFO_MIN_REC_FLAG
|
REC_STATUS_COLUMNS_ADDED
;
#define REC_NEW_STATUS 3
/* This is single byte bit-field */
#define REC_NEW_STATUS_MASK 0x7UL
#define REC_NEW_STATUS_SHIFT 0
...
...
storage/innobase/row/row0ins.cc
View file @
146fe8c1
...
...
@@ -2634,8 +2634,7 @@ row_ins_clust_index_entry_low(
#endif
/* UNIV_DEBUG */
if
(
entry
->
info_bits
)
{
ut_ad
(
entry
->
info_bits
==
(
REC_INFO_MIN_REC_FLAG
|
REC_STATUS_COLUMNS_ADDED
));
ut_ad
(
entry
->
info_bits
==
REC_INFO_DEFAULT_ROW
);
ut_ad
(
flags
==
BTR_NO_LOCKING_FLAG
);
ut_ad
(
index
->
is_instant
());
ut_ad
(
!
dict_index_is_online_ddl
(
index
));
...
...
storage/innobase/trx/trx0rec.cc
View file @
146fe8c1
...
...
@@ -500,8 +500,7 @@ trx_undo_page_report_insert(
/* Store then the fields required to uniquely determine the record
to be inserted in the clustered index */
if
(
UNIV_UNLIKELY
(
clust_entry
->
info_bits
))
{
ut_ad
(
clust_entry
->
info_bits
==
(
REC_INFO_MIN_REC_FLAG
|
REC_STATUS_COLUMNS_ADDED
));
ut_ad
(
clust_entry
->
info_bits
==
REC_INFO_DEFAULT_ROW
);
ut_ad
(
index
->
is_instant
());
ut_ad
(
undo_page
[
first_free
+
2
]
==
TRX_UNDO_INSERT_REC
);
undo_page
[
first_free
+
2
]
=
TRX_UNDO_INSERT_DEFAULT
;
...
...
@@ -1900,8 +1899,7 @@ trx_undo_report_row_operation(
ut_ad
(
!
trx
->
read_only
);
ut_ad
(
trx
->
id
);
if
(
UNIV_LIKELY
(
!
clust_entry
||
clust_entry
->
info_bits
!=
(
REC_INFO_MIN_REC_FLAG
|
REC_STATUS_COLUMNS_ADDED
)))
{
!=
REC_INFO_DEFAULT_ROW
))
{
/* Keep INFORMATION_SCHEMA.TABLES.UPDATE_TIME
up-to-date for persistent tables outside
instant ADD COLUMN. */
...
...
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