Skip to content

Commit

Permalink
InnoDB cleanup: remove a bunch of #ifdef UNIV_INNOCHECKSUM
Browse files Browse the repository at this point in the history
innochecksum uses global variables. great, let's use them all the
way down, instead of passing them as arguments to innodb internals,
conditionally modifying function prototypes with #ifdefs
  • Loading branch information
vuvova committed Apr 30, 2017
1 parent 7a29ca2 commit 0072d2e
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 256 deletions.
5 changes: 1 addition & 4 deletions extra/innochecksum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ is_page_corrupted(
if (mach_read_from_4(buf+FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION) != 0) {
is_corrupted = fil_space_verify_crypt_checksum(
const_cast<byte*>(buf), page_size,
strict_verify, is_log_enabled ? log_file : NULL,
mach_read_from_4(buf
+ FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID),
cur_page_num);
Expand All @@ -581,9 +580,7 @@ is_page_corrupted(

if (is_corrupted) {
is_corrupted = buf_page_is_corrupted(
true, buf, page_size, NULL,
cur_page_num, strict_verify,
is_log_enabled, log_file);
true, buf, page_size, NULL);
}

return(is_corrupted);
Expand Down
Loading

0 comments on commit 0072d2e

Please sign in to comment.