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
be434f6d
Commit
be434f6d
authored
Oct 02, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rec_get_nth_def_field()
The function had only one caller.
parent
c4434dbb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
28 deletions
+11
-28
storage/innobase/include/rem0rec.h
storage/innobase/include/rem0rec.h
+0
-25
storage/innobase/trx/trx0rec.cc
storage/innobase/trx/trx0rec.cc
+11
-3
No files found.
storage/innobase/include/rem0rec.h
View file @
be434f6d
...
...
@@ -822,31 +822,6 @@ inline bool rec_is_delete_marked(const rec_t* rec, ulint comp)
==
REC_INFO_DELETED_FLAG
;
}
/** Get the nth field from an index.
@param[in] rec index record
@param[in] index index
@param[in] offsets rec_get_offsets(rec, index)
@param[in] n field number
@param[out] len length of the field in bytes, or UNIV_SQL_NULL
@return a read-only copy of the index field */
inline
const
byte
*
rec_get_nth_def_field
(
const
rec_t
*
rec
,
const
dict_index_t
*
index
,
const
ulint
*
offsets
,
ulint
n
,
ulint
*
len
)
{
ut_ad
(
rec_offs_validate
(
rec
,
index
,
offsets
));
if
(
rec_offs_n_fields
(
offsets
)
>
n
&&
!
rec_offs_nth_default
(
offsets
,
n
))
{
return
rec_get_nth_field
(
rec
,
offsets
,
n
,
len
);
}
return
index
->
instant_field_value
(
n
-
1
,
len
);
}
/** Get the nth field from an index.
@param[in] rec index record
@param[in] index index
...
...
storage/innobase/trx/trx0rec.cc
View file @
be434f6d
...
...
@@ -1122,9 +1122,17 @@ trx_undo_page_report_modify(
if
(
rec_is_alter_metadata
(
rec
,
index
))
{
ut_ad
(
update
->
is_alter_metadata
());
field
=
rec_get_nth_def_field
(
rec
,
index
,
offsets
,
pos
,
&
flen
);
field
=
rec_offs_n_fields
(
offsets
)
>
pos
&&
!
rec_offs_nth_default
(
offsets
,
pos
)
?
rec_get_nth_field
(
rec
,
offsets
,
pos
,
&
flen
)
:
index
->
instant_field_value
(
pos
-
1
,
&
flen
);
if
(
pos
==
index
->
first_user_field
())
{
ut_ad
(
rec_offs_nth_extern
(
offsets
,
pos
));
...
...
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