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
d9ead8a1
Commit
d9ead8a1
authored
Aug 11, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Make UNIV_LOG_DEBUG work
parent
d1db0b84
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
innobase/buf/buf0flu.c
innobase/buf/buf0flu.c
+10
-2
innobase/log/log0recv.c
innobase/log/log0recv.c
+3
-0
No files found.
innobase/buf/buf0flu.c
View file @
d9ead8a1
...
@@ -412,6 +412,9 @@ buf_flush_write_block_low(
...
@@ -412,6 +412,9 @@ buf_flush_write_block_low(
/*======================*/
/*======================*/
buf_block_t
*
block
)
/* in: buffer block to write */
buf_block_t
*
block
)
/* in: buffer block to write */
{
{
#ifdef UNIV_LOG_DEBUG
static
ibool
univ_log_debug_warned
;
#endif
/* UNIV_LOG_DEBUG */
ut_a
(
block
->
state
==
BUF_BLOCK_FILE_PAGE
);
ut_a
(
block
->
state
==
BUF_BLOCK_FILE_PAGE
);
#ifdef UNIV_IBUF_DEBUG
#ifdef UNIV_IBUF_DEBUG
...
@@ -420,8 +423,13 @@ buf_flush_write_block_low(
...
@@ -420,8 +423,13 @@ buf_flush_write_block_low(
ut_ad
(
!
ut_dulint_is_zero
(
block
->
newest_modification
));
ut_ad
(
!
ut_dulint_is_zero
(
block
->
newest_modification
));
#ifdef UNIV_LOG_DEBUG
#ifdef UNIV_LOG_DEBUG
fputs
(
"Warning: cannot force log to disk in the log debug version!
\n
"
,
if
(
!
univ_log_debug_warned
)
{
univ_log_debug_warned
=
TRUE
;
fputs
(
"Warning: cannot force log to disk if UNIV_LOG_DEBUG is defined!
\n
"
"Crash recovery will not work!
\n
"
,
stderr
);
stderr
);
}
#else
#else
/* Force the log to the disk before writing the modified block */
/* Force the log to the disk before writing the modified block */
log_write_up_to
(
block
->
newest_modification
,
LOG_WAIT_ALL_GROUPS
,
TRUE
);
log_write_up_to
(
block
->
newest_modification
,
LOG_WAIT_ALL_GROUPS
,
TRUE
);
...
...
innobase/log/log0recv.c
View file @
d9ead8a1
...
@@ -628,6 +628,9 @@ log_block_checksum_is_ok_or_old_format(
...
@@ -628,6 +628,9 @@ log_block_checksum_is_ok_or_old_format(
format of InnoDB version < 3.23.52 */
format of InnoDB version < 3.23.52 */
byte
*
block
)
/* in: pointer to a log block */
byte
*
block
)
/* in: pointer to a log block */
{
{
#ifdef UNIV_LOG_DEBUG
return
(
TRUE
);
#endif
/* UNIV_LOG_DEBUG */
if
(
log_block_calc_checksum
(
block
)
==
log_block_get_checksum
(
block
))
{
if
(
log_block_calc_checksum
(
block
)
==
log_block_get_checksum
(
block
))
{
return
(
TRUE
);
return
(
TRUE
);
...
...
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