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
0fd3def2
Commit
0fd3def2
authored
Dec 19, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove MLOG_UNDO_ERASE_END
parent
9ee8917d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
47 deletions
+1
-47
storage/innobase/include/mtr0types.h
storage/innobase/include/mtr0types.h
+0
-3
storage/innobase/include/trx0rec.h
storage/innobase/include/trx0rec.h
+0
-11
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+0
-7
storage/innobase/trx/trx0rec.cc
storage/innobase/trx/trx0rec.cc
+1
-26
No files found.
storage/innobase/include/mtr0types.h
View file @
0fd3def2
...
@@ -100,9 +100,6 @@ enum mlog_id_t {
...
@@ -100,9 +100,6 @@ enum mlog_id_t {
/** Create an index page */
/** Create an index page */
MLOG_PAGE_CREATE
=
19
,
MLOG_PAGE_CREATE
=
19
,
/** erase an undo log page end */
MLOG_UNDO_ERASE_END
=
21
,
/** create an undo log header */
/** create an undo log header */
MLOG_UNDO_HDR_CREATE
=
25
,
MLOG_UNDO_HDR_CREATE
=
25
,
...
...
storage/innobase/include/trx0rec.h
View file @
0fd3def2
...
@@ -236,17 +236,6 @@ trx_undo_prev_version_build(
...
@@ -236,17 +236,6 @@ trx_undo_prev_version_build(
into this function by purge thread or not.
into this function by purge thread or not.
And if we read "after image" of undo log */
And if we read "after image" of undo log */
/***********************************************************//**
Parses a redo log record of erasing of an undo page end.
@return end of log record or NULL */
byte
*
trx_undo_parse_erase_page_end
(
/*==========================*/
byte
*
ptr
,
/*!< in: buffer */
byte
*
end_ptr
,
/*!< in: buffer end */
page_t
*
page
,
/*!< in: page or NULL */
mtr_t
*
mtr
);
/*!< in: mtr or NULL */
/** Read from an undo log record a non-virtual column value.
/** Read from an undo log record a non-virtual column value.
@param[in,out] ptr pointer to remaining part of the undo record
@param[in,out] ptr pointer to remaining part of the undo record
@param[in,out] field stored field
@param[in,out] field stored field
...
...
storage/innobase/log/log0recv.cc
View file @
0fd3def2
...
@@ -1394,10 +1394,6 @@ recv_parse_or_apply_log_rec_body(
...
@@ -1394,10 +1394,6 @@ recv_parse_or_apply_log_rec_body(
page_parse_create
(
block
,
type
==
MLOG_COMP_PAGE_CREATE_RTREE
,
page_parse_create
(
block
,
type
==
MLOG_COMP_PAGE_CREATE_RTREE
,
true
);
true
);
break
;
break
;
case
MLOG_UNDO_ERASE_END
:
ut_ad
(
!
page
||
page_type
==
FIL_PAGE_UNDO_LOG
);
ptr
=
trx_undo_parse_erase_page_end
(
ptr
,
end_ptr
,
page
,
mtr
);
break
;
case
MLOG_UNDO_HDR_CREATE
:
case
MLOG_UNDO_HDR_CREATE
:
ut_ad
(
!
page
||
page_type
==
FIL_PAGE_UNDO_LOG
);
ut_ad
(
!
page
||
page_type
==
FIL_PAGE_UNDO_LOG
);
ptr
=
trx_undo_parse_page_header
(
ptr
,
end_ptr
,
page
,
mtr
);
ptr
=
trx_undo_parse_page_header
(
ptr
,
end_ptr
,
page
,
mtr
);
...
@@ -3622,9 +3618,6 @@ get_mlog_string(mlog_id_t type)
...
@@ -3622,9 +3618,6 @@ get_mlog_string(mlog_id_t type)
case
MLOG_PAGE_CREATE
:
case
MLOG_PAGE_CREATE
:
return
(
"MLOG_PAGE_CREATE"
);
return
(
"MLOG_PAGE_CREATE"
);
case
MLOG_UNDO_ERASE_END
:
return
(
"MLOG_UNDO_ERASE_END"
);
case
MLOG_UNDO_HDR_CREATE
:
case
MLOG_UNDO_HDR_CREATE
:
return
(
"MLOG_UNDO_HDR_CREATE"
);
return
(
"MLOG_UNDO_HDR_CREATE"
);
...
...
storage/innobase/trx/trx0rec.cc
View file @
0fd3def2
...
@@ -1772,37 +1772,12 @@ trx_undo_erase_page_end(
...
@@ -1772,37 +1772,12 @@ trx_undo_erase_page_end(
first_free
=
mach_read_from_2
(
undo_page
+
TRX_UNDO_PAGE_HDR
first_free
=
mach_read_from_2
(
undo_page
+
TRX_UNDO_PAGE_HDR
+
TRX_UNDO_PAGE_FREE
);
+
TRX_UNDO_PAGE_FREE
);
memset
(
undo_page
+
first_free
,
0
xff
,
memset
(
undo_page
+
first_free
,
0
,
(
UNIV_PAGE_SIZE
-
FIL_PAGE_DATA_END
)
-
first_free
);
(
UNIV_PAGE_SIZE
-
FIL_PAGE_DATA_END
)
-
first_free
);
mlog_write_initial_log_record
(
undo_page
,
MLOG_UNDO_ERASE_END
,
mtr
);
return
(
first_free
!=
TRX_UNDO_PAGE_HDR
+
TRX_UNDO_PAGE_HDR_SIZE
);
return
(
first_free
!=
TRX_UNDO_PAGE_HDR
+
TRX_UNDO_PAGE_HDR_SIZE
);
}
}
/***********************************************************//**
Parses a redo log record of erasing of an undo page end.
@return end of log record or NULL */
byte
*
trx_undo_parse_erase_page_end
(
/*==========================*/
byte
*
ptr
,
/*!< in: buffer */
byte
*
end_ptr
MY_ATTRIBUTE
((
unused
)),
/*!< in: buffer end */
page_t
*
page
,
/*!< in: page or NULL */
mtr_t
*
mtr
)
/*!< in: mtr or NULL */
{
ut_ad
(
ptr
!=
NULL
);
ut_ad
(
end_ptr
!=
NULL
);
if
(
page
==
NULL
)
{
return
(
ptr
);
}
trx_undo_erase_page_end
(
page
,
mtr
);
return
(
ptr
);
}
/***********************************************************************//**
/***********************************************************************//**
Writes information to an undo log about an insert, update, or a delete marking
Writes information to an undo log about an insert, update, or a delete marking
of a clustered index record. This information is used in a rollback of the
of a clustered index record. This information is used in a rollback of the
...
...
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