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
8217e9b5
Commit
8217e9b5
authored
May 28, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: mtr0mtr.h: Add Doxygen comments for the redo log entry types.
parent
87cf4a3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
72 deletions
+91
-72
include/mtr0mtr.h
include/mtr0mtr.h
+91
-72
No files found.
include/mtr0mtr.h
View file @
8217e9b5
...
...
@@ -54,118 +54,137 @@ first 3 values must be RW_S_LATCH, RW_X_LATCH, RW_NO_LATCH */
#define MTR_MEMO_S_LOCK 55
#define MTR_MEMO_X_LOCK 56
/*
Log item types: we have made them to be of the type 'byte'
for the compiler to warn if val and type parameters are switched
in a call to mlog_write_ulint. NOTE! For 1 - 8 bytes, the
flag value must give the length also!
*/
#define MLOG_SINGLE_REC_FLAG 128
/* if the mtr contains only
/*
* @name Log item types
The log items are declared 'byte' so that the compiler can warn if val
and type parameters are switched in a call to mlog_write_ulint. NOTE!
For 1 - 8 bytes, the flag value must give the length also! @{
*/
#define MLOG_SINGLE_REC_FLAG 128
/*
!<
if the mtr contains only
one log record for one page,
i.e., write_initial_log_record
has been called only once,
this flag is ORed to the type
of that first log record */
#define MLOG_1BYTE (1)
/* one byte is written */
#define MLOG_2BYTES (2)
/* 2 bytes ... */
#define MLOG_4BYTES (4)
/* 4 bytes ... */
#define MLOG_8BYTES (8)
/* 8 bytes ... */
#define MLOG_REC_INSERT ((byte)9)
/* record insert */
#define MLOG_REC_CLUST_DELETE_MARK ((byte)10)
/* mark clustered index record
#define MLOG_1BYTE (1)
/*
!<
one byte is written */
#define MLOG_2BYTES (2)
/*
!<
2 bytes ... */
#define MLOG_4BYTES (4)
/*
!<
4 bytes ... */
#define MLOG_8BYTES (8)
/*
!<
8 bytes ... */
#define MLOG_REC_INSERT ((byte)9)
/*
!<
record insert */
#define MLOG_REC_CLUST_DELETE_MARK ((byte)10)
/*
!<
mark clustered index record
deleted */
#define MLOG_REC_SEC_DELETE_MARK ((byte)11)
/* mark secondary index record
#define MLOG_REC_SEC_DELETE_MARK ((byte)11)
/*
!<
mark secondary index record
deleted */
#define MLOG_REC_UPDATE_IN_PLACE ((byte)13)
/* update of a record,
#define MLOG_REC_UPDATE_IN_PLACE ((byte)13)
/*
!<
update of a record,
preserves record field sizes */
#define MLOG_REC_DELETE ((byte)14)
/* delete a record from a
#define MLOG_REC_DELETE ((byte)14)
/*
!<
delete a record from a
page */
#define MLOG_LIST_END_DELETE ((byte)15)
/* delete record list end on
#define MLOG_LIST_END_DELETE ((byte)15)
/*
!<
delete record list end on
index page */
#define MLOG_LIST_START_DELETE ((byte)16)
/* delete record list start on
#define MLOG_LIST_START_DELETE ((byte)16)
/*
!<
delete record list start on
index page */
#define MLOG_LIST_END_COPY_CREATED ((byte)17)
/* copy record list end to a
#define MLOG_LIST_END_COPY_CREATED ((byte)17)
/*
!<
copy record list end to a
new created index page */
#define MLOG_PAGE_REORGANIZE ((byte)18)
/* reorganize an index page */
#define MLOG_PAGE_CREATE ((byte)19)
/* create an index page */
#define MLOG_UNDO_INSERT ((byte)20)
/* insert entry in an undo
#define MLOG_PAGE_REORGANIZE ((byte)18)
/*!< reorganize an
index page in
ROW_FORMAT=REDUNDANT */
#define MLOG_PAGE_CREATE ((byte)19)
/*!< create an index page */
#define MLOG_UNDO_INSERT ((byte)20)
/*!< insert entry in an undo
log */
#define MLOG_UNDO_ERASE_END ((byte)21)
/* erase an undo log
#define MLOG_UNDO_ERASE_END ((byte)21)
/*
!<
erase an undo log
page end */
#define MLOG_UNDO_INIT ((byte)22)
/* initialize a page in an
#define MLOG_UNDO_INIT ((byte)22)
/*
!<
initialize a page in an
undo log */
#define MLOG_UNDO_HDR_DISCARD ((byte)23)
/* discard an update undo log
#define MLOG_UNDO_HDR_DISCARD ((byte)23)
/*
!<
discard an update undo log
header */
#define MLOG_UNDO_HDR_REUSE ((byte)24)
/* reuse an insert undo log
#define MLOG_UNDO_HDR_REUSE ((byte)24)
/*
!<
reuse an insert undo log
header */
#define MLOG_UNDO_HDR_CREATE ((byte)25)
/* create an undo log header */
#define MLOG_REC_MIN_MARK ((byte)26)
/* mark an index record as the
predefined minimum record */
#define MLOG_IBUF_BITMAP_INIT ((byte)27)
/* initialize an ibuf bitmap
page */
#define MLOG_UNDO_HDR_CREATE ((byte)25)
/*!< create an undo
log header */
#define MLOG_REC_MIN_MARK ((byte)26)
/*!< mark an index
record as the
predefined minimum
record */
#define MLOG_IBUF_BITMAP_INIT ((byte)27)
/*!< initialize an
ibuf bitmap page */
/*#define MLOG_FULL_PAGE ((byte)28) full contents of a page */
#define MLOG_INIT_FILE_PAGE ((byte)29)
/* this means that a file page
is taken into use and the prior
contents of the page should be
ignored: in recovery we must
not trust the lsn values stored
to the file page */
#define MLOG_WRITE_STRING ((byte)30)
/* write a string to a page */
#define MLOG_MULTI_REC_END ((byte)31)
/* if a single mtr writes
#define MLOG_INIT_FILE_PAGE ((byte)29)
/*!< this means that a
file page is taken
into use and the prior
contents of the page
should be ignored: in
recovery we must not
trust the lsn values
stored to the file
page */
#define MLOG_WRITE_STRING ((byte)30)
/*!< write a string to
a page */
#define MLOG_MULTI_REC_END ((byte)31)
/*!< if a single mtr writes
log records for several pages,
this log record ends the
sequence of these records */
#define MLOG_DUMMY_RECORD ((byte)32)
/* dummy log record used to
#define MLOG_DUMMY_RECORD ((byte)32)
/*
!<
dummy log record used to
pad a log block full */
#define MLOG_FILE_CREATE ((byte)33)
/* log record about an .ibd
#define MLOG_FILE_CREATE ((byte)33)
/*
!<
log record about an .ibd
file creation */
#define MLOG_FILE_RENAME ((byte)34)
/* log record about an .ibd
#define MLOG_FILE_RENAME ((byte)34)
/*
!<
log record about an .ibd
file rename */
#define MLOG_FILE_DELETE ((byte)35)
/* log record about an .ibd
#define MLOG_FILE_DELETE ((byte)35)
/*
!<
log record about an .ibd
file deletion */
#define MLOG_COMP_REC_MIN_MARK ((byte)36)
/* mark a compact index record
as the predefined minimum
#define MLOG_COMP_REC_MIN_MARK ((byte)36)
/*!< mark a compact
index record as the
predefined minimum
record */
#define MLOG_COMP_PAGE_CREATE ((byte)37)
/* create a compact
#define MLOG_COMP_PAGE_CREATE ((byte)37)
/*
!<
create a compact
index page */
#define MLOG_COMP_REC_INSERT ((byte)38)
/* compact record insert */
#define MLOG_COMP_REC_INSERT ((byte)38)
/*
!<
compact record insert */
#define MLOG_COMP_REC_CLUST_DELETE_MARK ((byte)39)
/* mark compact clustered index
record deleted */
#define MLOG_COMP_REC_SEC_DELETE_MARK ((byte)40)
/* mark compact secondary index
record deleted; this log
record type is redundant, as
MLOG_REC_SEC_DELETE_MARK is
independent of the record
format. */
#define MLOG_COMP_REC_UPDATE_IN_PLACE ((byte)41)
/* update of a compact record,
preserves record field sizes */
#define MLOG_COMP_REC_DELETE ((byte)42)
/* delete a compact record
/*!< mark compact
clustered index record
deleted */
#define MLOG_COMP_REC_SEC_DELETE_MARK ((byte)40)
/*!< mark compact
secondary index record
deleted; this log
record type is
redundant, as
MLOG_REC_SEC_DELETE_MARK
is independent of the
record format. */
#define MLOG_COMP_REC_UPDATE_IN_PLACE ((byte)41)
/*!< update of a
compact record,
preserves record field
sizes */
#define MLOG_COMP_REC_DELETE ((byte)42)
/*!< delete a compact record
from a page */
#define MLOG_COMP_LIST_END_DELETE ((byte)43)
/* delete compact record list
#define MLOG_COMP_LIST_END_DELETE ((byte)43)
/*
!<
delete compact record list
end on index page */
#define MLOG_COMP_LIST_START_DELETE ((byte)44)
/* delete compact record list
#define MLOG_COMP_LIST_START_DELETE ((byte)44)
/*
!<
delete compact record list
start on index page */
#define MLOG_COMP_LIST_END_COPY_CREATED ((byte)45)
/* copy compact record list end
to a new created index page */
#define MLOG_COMP_PAGE_REORGANIZE ((byte)46)
/* reorganize an index page */
#define MLOG_FILE_CREATE2 ((byte)47)
/* log record about creating
/*!< copy compact
record list end to a
new created index
page */
#define MLOG_COMP_PAGE_REORGANIZE ((byte)46)
/*!< reorganize an index page */
#define MLOG_FILE_CREATE2 ((byte)47)
/*!< log record about creating
an .ibd file, with format */
#define MLOG_ZIP_WRITE_NODE_PTR ((byte)48)
/* write the node pointer of
#define MLOG_ZIP_WRITE_NODE_PTR ((byte)48)
/*
!<
write the node pointer of
a record on a compressed
non-leaf B-tree page */
#define MLOG_ZIP_WRITE_BLOB_PTR ((byte)49)
/* write the BLOB pointer
#define MLOG_ZIP_WRITE_BLOB_PTR ((byte)49)
/*
!<
write the BLOB pointer
of an externally stored column
on a compressed page */
#define MLOG_ZIP_WRITE_HEADER ((byte)50)
/* write to compressed page
#define MLOG_ZIP_WRITE_HEADER ((byte)50)
/*
!<
write to compressed page
header */
#define MLOG_ZIP_PAGE_COMPRESS ((byte)51)
/* compress an index page */
#define MLOG_BIGGEST_TYPE ((byte)51)
/* biggest value (used in
asserts) */
#define MLOG_ZIP_PAGE_COMPRESS ((byte)51)
/*!< compress an index page */
#define MLOG_BIGGEST_TYPE ((byte)51)
/*!< biggest value (used in
assertions) */
/* @} */
/*
Flags for MLOG_FILE operations (stored in the page number
parameter, called log_flags in the functions). The page number
parameter was initially written as 0.
*/
#define MLOG_FILE_FLAG_TEMP 1
/* identifies TEMPORARY TABLE in
/*
* @name Flags for MLOG_FILE operations
(stored in the page number parameter, called log_flags in the
functions). The page number parameter was originally written as 0. @{
*/
#define MLOG_FILE_FLAG_TEMP 1
/*
!<
identifies TEMPORARY TABLE in
MLOG_FILE_CREATE, MLOG_FILE_CREATE2 */
/* @} */
/***************************************************************//**
Starts a mini-transaction and creates a mini-transaction handle
...
...
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