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
9a913689
Commit
9a913689
authored
Aug 31, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved the ndb redo log reader
parent
298af8cc
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
164 deletions
+105
-164
ndb/src/kernel/blocks/dblqh/redoLogReader/records.cpp
ndb/src/kernel/blocks/dblqh/redoLogReader/records.cpp
+11
-0
ndb/src/kernel/blocks/dblqh/redoLogReader/records.hpp
ndb/src/kernel/blocks/dblqh/redoLogReader/records.hpp
+2
-0
ndb/src/kernel/blocks/dblqh/redoLogReader/redoLogFileReader.cpp
...c/kernel/blocks/dblqh/redoLogReader/redoLogFileReader.cpp
+92
-164
No files found.
ndb/src/kernel/blocks/dblqh/redoLogReader/records.cpp
View file @
9a913689
...
...
@@ -239,6 +239,17 @@ bool PageHeader::check() {
return
true
;
}
bool
PageHeader
::
lastPage
()
{
return
m_next_page
==
0xffffff00
;
}
Uint32
PageHeader
::
lastWord
()
{
return
m_current_page_index
;
}
NdbOut
&
operator
<<
(
NdbOut
&
no
,
const
PageHeader
&
ph
)
{
no
<<
"------------PAGE HEADER------------------------"
<<
endl
<<
endl
;
ndbout_c
(
"%-30s%-12s%-12s
\n
"
,
""
,
"Decimal"
,
"Hex"
);
...
...
ndb/src/kernel/blocks/dblqh/redoLogReader/records.hpp
View file @
9a913689
...
...
@@ -132,6 +132,8 @@ class PageHeader {
public:
bool
check
();
Uint32
getLogRecordSize
();
bool
lastPage
();
Uint32
lastWord
();
protected:
Uint32
m_checksum
;
Uint32
m_lap
;
...
...
ndb/src/kernel/blocks/dblqh/redoLogReader/redoLogFileReader.cpp
View file @
9a913689
This diff is collapsed.
Click to expand it.
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