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
176e8327
Commit
176e8327
authored
Sep 03, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: log_check_log_recs(): Enclose in #ifdef UNIV_LOG_DEBUG.
Add const qualifiers.
parent
22b0bb5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
include/log0log.ic
include/log0log.ic
+3
-1
log/log0log.c
log/log0log.c
+5
-3
No files found.
include/log0log.ic
View file @
176e8327
...
...
@@ -27,6 +27,7 @@ Created 12/9/1995 Heikki Tuuri
#include "mach0data.h"
#include "mtr0mtr.h"
#ifdef UNIV_LOG_DEBUG
/******************************************************//**
Checks by parsing that the catenated log segment for a single mtr is
consistent. */
...
...
@@ -34,11 +35,12 @@ UNIV_INTERN
ibool
log_check_log_recs(
/*===============*/
byte*
buf, /*!< in: pointer to the start of
const byte*
buf, /*!< in: pointer to the start of
the log segment in the
log_sys->buf log buffer */
ulint len, /*!< in: segment length in bytes */
ib_uint64_t buf_start_lsn); /*!< in: buffer start lsn */
#endif /* UNIV_LOG_DEBUG */
/************************************************************//**
Gets a log block flush bit.
...
...
log/log0log.c
View file @
176e8327
...
...
@@ -3234,6 +3234,7 @@ loop:
ut_a
(
lsn
==
log_sys
->
lsn
);
}
#ifdef UNIV_LOG_DEBUG
/******************************************************//**
Checks by parsing that the catenated log segment for a single mtr is
consistent. */
...
...
@@ -3241,7 +3242,7 @@ UNIV_INTERN
ibool
log_check_log_recs
(
/*===============*/
byte
*
buf
,
/*!< in: pointer to the start of
const
byte
*
buf
,
/*!< in: pointer to the start of
the log segment in the
log_sys->buf log buffer */
ulint
len
,
/*!< in: segment length in bytes */
...
...
@@ -3249,8 +3250,8 @@ log_check_log_recs(
{
ib_uint64_t
contiguous_lsn
;
ib_uint64_t
scanned_lsn
;
byte
*
start
;
byte
*
end
;
const
byte
*
start
;
const
byte
*
end
;
byte
*
buf1
;
byte
*
scan_buf
;
...
...
@@ -3283,6 +3284,7 @@ log_check_log_recs(
return
(
TRUE
);
}
#endif
/* UNIV_LOG_DEBUG */
/******************************************************//**
Peeks the current lsn.
...
...
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