Skip to content

Commit

Permalink
After reivew fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lindström committed Feb 10, 2017
1 parent 41cd80f commit de9963b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions storage/innobase/buf/buf0buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4513,7 +4513,7 @@ buf_page_check_corrupt(
ib_logf(IB_LOG_LEVEL_ERROR,
"%s: Block in space_id " ULINTPF " in file %s corrupted.",
page_type == FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED ? "Maybe corruption" : "Corruption",
space_id, space ? space->name : "NULL");
space_id, space->name ? space->name : "NULL");
ib_logf(IB_LOG_LEVEL_ERROR,
"Based on page type %s (" ULINTPF ")",
fil_get_page_type_name(page_type), page_type);
Expand All @@ -4523,7 +4523,7 @@ buf_page_check_corrupt(

ib_logf(IB_LOG_LEVEL_ERROR,
"Block in space_id " ULINTPF " in file %s encrypted.",
space_id, space ? space->name : "NULL");
space_id, space->name ? space->name : "NULL");
ib_logf(IB_LOG_LEVEL_ERROR,
"However key management plugin or used key_version %u is not found or"
" used encryption algorithm or method does not match.",
Expand Down Expand Up @@ -4669,7 +4669,7 @@ buf_page_io_complete(
ib_logf(IB_LOG_LEVEL_ERROR,
"Space %u file %s read of page %u.",
bpage->space,
space ? space->name : "NULL",
space->name ? space->name : "NULL",
bpage->offset);
ib_logf(IB_LOG_LEVEL_ERROR,
"You may have to recover"
Expand Down Expand Up @@ -4894,7 +4894,7 @@ buf_all_freed_instance(
ib_logf(IB_LOG_LEVEL_ERROR,
"Page space_id %u name %s.",
block->page.space,
(space && space->name) ? space->name : "NULL");
space->name ? space->name : "NULL");
ut_error;
}
}
Expand Down
3 changes: 1 addition & 2 deletions storage/innobase/buf/buf0dblwr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ buf_dblwr_process()

for (std::list<byte*>::iterator i = recv_dblwr.pages.begin();
i != recv_dblwr.pages.end(); ++i, ++page_no_dblwr ) {
fil_space_t* space=NULL;
page = *i;
page_no = mach_read_from_4(page + FIL_PAGE_OFFSET);
space_id = mach_read_from_4(page + FIL_PAGE_SPACE_ID);
Expand All @@ -509,7 +508,7 @@ buf_dblwr_process()
continue;
}

space = fil_space_found_by_id(space_id);
fil_space_t* space = fil_space_found_by_id(space_id);
ulint zip_size = fil_space_get_zip_size(space_id);
ut_ad(!buf_page_is_zeroes(page, zip_size));

Expand Down
8 changes: 4 additions & 4 deletions storage/xtradb/buf/buf0buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4614,7 +4614,7 @@ buf_page_check_corrupt(
ib_logf(IB_LOG_LEVEL_ERROR,
"%s: Block in space_id " ULINTPF " in file %s corrupted.",
page_type == FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED ? "Maybe corruption" : "Corruption",
space_id, space ? space->name : "NULL");
space_id, space->name ? space->name : "NULL");
ib_logf(IB_LOG_LEVEL_ERROR,
"Based on page type %s (" ULINTPF ")",
fil_get_page_type_name(page_type), page_type);
Expand All @@ -4624,7 +4624,7 @@ buf_page_check_corrupt(

ib_logf(IB_LOG_LEVEL_ERROR,
"Block in space_id " ULINTPF " in file %s encrypted.",
space_id, space ? space->name : "NULL");
space_id, space->name ? space->name : "NULL");
ib_logf(IB_LOG_LEVEL_ERROR,
"However key management plugin or used key_version %u is not found or"
" used encryption algorithm or method does not match.",
Expand Down Expand Up @@ -4775,7 +4775,7 @@ buf_page_io_complete(
ib_logf(IB_LOG_LEVEL_ERROR,
"Space %u file %s read of page %u.",
bpage->space,
space ? space->name : "NULL",
space->name ? space->name : "NULL",
bpage->offset);
ib_logf(IB_LOG_LEVEL_ERROR,
"You may have to recover"
Expand Down Expand Up @@ -5040,7 +5040,7 @@ buf_all_freed_instance(
ib_logf(IB_LOG_LEVEL_ERROR,
"Page space_id %u name %s.",
block->page.space,
(space && space->name) ? space->name : "NULL");
space->name ? space->name : "NULL");
ut_error;
}
}
Expand Down
3 changes: 1 addition & 2 deletions storage/xtradb/buf/buf0dblwr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ buf_dblwr_process()

for (std::list<byte*>::iterator i = recv_dblwr.pages.begin();
i != recv_dblwr.pages.end(); ++i, ++page_no_dblwr ) {
fil_space_t* space=NULL;
page = *i;
page_no = mach_read_from_4(page + FIL_PAGE_OFFSET);
space_id = mach_read_from_4(page + FIL_PAGE_SPACE_ID);
Expand All @@ -509,7 +508,7 @@ buf_dblwr_process()
continue;
}

space = fil_space_found_by_id(space_id);
fil_space_t* space = fil_space_found_by_id(space_id);
ulint zip_size = fil_space_get_zip_size(space_id);
ut_ad(!buf_page_is_zeroes(page, zip_size));

Expand Down

0 comments on commit de9963b

Please sign in to comment.