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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Hide 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 */
...
@@ -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_S_LOCK 55
#define MTR_MEMO_X_LOCK 56
#define MTR_MEMO_X_LOCK 56
/*
Log item types: we have made them to be of the type 'byte'
/*
* @name Log item types
for the compiler to warn if val and type parameters are switched
The log items are declared 'byte' so that the compiler can warn if val
in a call to mlog_write_ulint. NOTE! For 1 - 8 bytes, the
and type parameters are switched in a call to mlog_write_ulint. NOTE!
flag value must give the length also!
*/
For 1 - 8 bytes, the flag value must give the length also! @{
*/
#define MLOG_SINGLE_REC_FLAG 128
/* if the mtr contains only
#define MLOG_SINGLE_REC_FLAG 128
/*
!<
if the mtr contains only
one log record for one page,
one log record for one page,
i.e., write_initial_log_record
i.e., write_initial_log_record
has been called only once,
has been called only once,
this flag is ORed to the type
this flag is ORed to the type
of that first log record */
of that first log record */
#define MLOG_1BYTE (1)
/* one byte is written */
#define MLOG_1BYTE (1)
/*
!<
one byte is written */
#define MLOG_2BYTES (2)
/* 2 bytes ... */
#define MLOG_2BYTES (2)
/*
!<
2 bytes ... */
#define MLOG_4BYTES (4)
/* 4 bytes ... */
#define MLOG_4BYTES (4)
/*
!<
4 bytes ... */
#define MLOG_8BYTES (8)
/* 8 bytes ... */
#define MLOG_8BYTES (8)
/*
!<
8 bytes ... */
#define MLOG_REC_INSERT ((byte)9)
/* record insert */
#define MLOG_REC_INSERT ((byte)9)
/*
!<
record insert */
#define MLOG_REC_CLUST_DELETE_MARK ((byte)10)
/* mark clustered index record
#define MLOG_REC_CLUST_DELETE_MARK ((byte)10)
/*
!<
mark clustered index record
deleted */
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 */
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 */
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 */
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 */
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 */
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 */
new created index page */
#define MLOG_PAGE_REORGANIZE ((byte)18)
/* reorganize an index page */
#define MLOG_PAGE_REORGANIZE ((byte)18)
/*!< reorganize an
#define MLOG_PAGE_CREATE ((byte)19)
/* create an index page */
index page in
#define MLOG_UNDO_INSERT ((byte)20)
/* insert entry in an undo
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 */
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 */
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 */
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 */
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 */
header */
#define MLOG_UNDO_HDR_CREATE ((byte)25)
/* create an undo log header */
#define MLOG_UNDO_HDR_CREATE ((byte)25)
/*!< create an undo
#define MLOG_REC_MIN_MARK ((byte)26)
/* mark an index record as the
log header */
predefined minimum record */
#define MLOG_REC_MIN_MARK ((byte)26)
/*!< mark an index
#define MLOG_IBUF_BITMAP_INIT ((byte)27)
/* initialize an ibuf bitmap
record as the
page */
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_FULL_PAGE ((byte)28) full contents of a page */
#define MLOG_INIT_FILE_PAGE ((byte)29)
/* this means that a file page
#define MLOG_INIT_FILE_PAGE ((byte)29)
/*!< this means that a
is taken into use and the prior
file page is taken
contents of the page should be
into use and the prior
ignored: in recovery we must
contents of the page
not trust the lsn values stored
should be ignored: in
to the file page */
recovery we must not
#define MLOG_WRITE_STRING ((byte)30)
/* write a string to a page */
trust the lsn values
#define MLOG_MULTI_REC_END ((byte)31)
/* if a single mtr writes
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,
log records for several pages,
this log record ends the
this log record ends the
sequence of these records */
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 */
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 */
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 */
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 */
file deletion */
#define MLOG_COMP_REC_MIN_MARK ((byte)36)
/* mark a compact index record
#define MLOG_COMP_REC_MIN_MARK ((byte)36)
/*!< mark a compact
as the predefined minimum
index record as the
predefined minimum
record */
record */
#define MLOG_COMP_PAGE_CREATE ((byte)37)
/* create a compact
#define MLOG_COMP_PAGE_CREATE ((byte)37)
/*
!<
create a compact
index page */
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)
#define MLOG_COMP_REC_CLUST_DELETE_MARK ((byte)39)
/* mark compact clustered index
/*!< mark compact
record deleted */
clustered index record
#define MLOG_COMP_REC_SEC_DELETE_MARK ((byte)40)
/* mark compact secondary index
deleted */
record deleted; this log
#define MLOG_COMP_REC_SEC_DELETE_MARK ((byte)40)
/*!< mark compact
record type is redundant, as
secondary index record
MLOG_REC_SEC_DELETE_MARK is
deleted; this log
independent of the record
record type is
format. */
redundant, as
#define MLOG_COMP_REC_UPDATE_IN_PLACE ((byte)41)
/* update of a compact record,
MLOG_REC_SEC_DELETE_MARK
preserves record field sizes */
is independent of the
#define MLOG_COMP_REC_DELETE ((byte)42)
/* delete a compact record
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 */
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 */
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 */
start on index page */
#define MLOG_COMP_LIST_END_COPY_CREATED ((byte)45)
#define MLOG_COMP_LIST_END_COPY_CREATED ((byte)45)
/* copy compact record list end
/*!< copy compact
to a new created index page */
record list end to a
#define MLOG_COMP_PAGE_REORGANIZE ((byte)46)
/* reorganize an index page */
new created index
#define MLOG_FILE_CREATE2 ((byte)47)
/* log record about creating
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 */
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
a record on a compressed
non-leaf B-tree page */
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
of an externally stored column
on a compressed page */
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 */
header */
#define MLOG_ZIP_PAGE_COMPRESS ((byte)51)
/* compress an index page */
#define MLOG_ZIP_PAGE_COMPRESS ((byte)51)
/*!< compress an index page */
#define MLOG_BIGGEST_TYPE ((byte)51)
/* biggest value (used in
#define MLOG_BIGGEST_TYPE ((byte)51)
/*!< biggest value (used in
asserts) */
assertions) */
/* @} */
/*
Flags for MLOG_FILE operations (stored in the page number
/*
* @name Flags for MLOG_FILE operations
parameter, called log_flags in the functions). The page number
(stored in the page number parameter, called log_flags in the
parameter was initially written as 0.
*/
functions). The page number parameter was originally written as 0. @{
*/
#define MLOG_FILE_FLAG_TEMP 1
/* identifies TEMPORARY TABLE in
#define MLOG_FILE_FLAG_TEMP 1
/*
!<
identifies TEMPORARY TABLE in
MLOG_FILE_CREATE, MLOG_FILE_CREATE2 */
MLOG_FILE_CREATE, MLOG_FILE_CREATE2 */
/* @} */
/***************************************************************//**
/***************************************************************//**
Starts a mini-transaction and creates a mini-transaction handle
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