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
09273329
Commit
09273329
authored
Aug 28, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some declarations private
recv_addr_state, recv_addr_t: Define in log0recv.cc only.
parent
93ed717b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
26 deletions
+29
-26
storage/innobase/include/log0recv.h
storage/innobase/include/log0recv.h
+0
-26
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+29
-0
No files found.
storage/innobase/include/log0recv.h
View file @
09273329
...
...
@@ -200,32 +200,6 @@ struct recv_t{
rec_list
;
/*!< list of log records for this page */
};
/** States of recv_addr_t */
enum
recv_addr_state
{
/** not yet processed */
RECV_NOT_PROCESSED
,
/** page is being read */
RECV_BEING_READ
,
/** log records are being applied on the page */
RECV_BEING_PROCESSED
,
/** log records have been applied on the page */
RECV_PROCESSED
,
/** log records have been discarded because the tablespace
does not exist */
RECV_DISCARDED
};
/** Hashed page file address struct */
struct
recv_addr_t
{
enum
recv_addr_state
state
;
/*!< recovery state of the page */
unsigned
space
:
32
;
/*!< space id */
unsigned
page_no
:
32
;
/*!< page number */
UT_LIST_BASE_NODE_T
(
recv_t
)
rec_list
;
/*!< list of log records for this page */
hash_node_t
addr_hash
;
/*!< hash node in the hash bucket chain */
};
struct
recv_dblwr_t
{
/** Add a page frame to the doublewrite recovery buffer. */
void
add
(
byte
*
page
)
{
...
...
storage/innobase/log/log0recv.cc
View file @
09273329
...
...
@@ -169,6 +169,35 @@ typedef std::map<
static
recv_spaces_t
recv_spaces
;
/** States of recv_addr_t */
enum
recv_addr_state
{
/** not yet processed */
RECV_NOT_PROCESSED
,
/** page is being read */
RECV_BEING_READ
,
/** log records are being applied on the page */
RECV_BEING_PROCESSED
,
/** log records have been applied on the page */
RECV_PROCESSED
,
/** log records have been discarded because the tablespace
does not exist */
RECV_DISCARDED
};
/** Hashed page file address struct */
struct
recv_addr_t
{
/** recovery state of the page */
recv_addr_state
state
;
/** tablespace identifier */
unsigned
space
:
32
;
/** page number */
unsigned
page_no
:
32
;
/** list of log records for this page */
UT_LIST_BASE_NODE_T
(
recv_t
)
rec_list
;
/** hash node in the hash bucket chain */
hash_node_t
addr_hash
;
};
/** Report optimized DDL operation (without redo log),
corresponding to MLOG_INDEX_LOAD.
@param[in] space_id tablespace identifier
...
...
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