Skip to content

Commit 2d22d18

Browse files
committed
ignoring buf_corruption check for nc pages
1 parent a3ae7e8 commit 2d22d18

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,11 +798,10 @@ buf_page_is_corrupted(
798798

799799
/* Stored log sequence numbers at the start and the end
800800
of page do not match */
801-
802801
return(TRUE);
803802
}
804803

805-
#if !defined(UNIV_HOTBACKUP) && !defined(UNIV_INNOCHECKSUM)
804+
#if !defined(UNIV_HOTBACKUP) && !defined(UNIV_INNOCHECKSUM) &!defined(UNIV_NVDIMM_CACHE)
806805
if (check_lsn && recv_lsn_checks_on) {
807806
lsn_t current_lsn;
808807
const lsn_t page_lsn
@@ -973,7 +972,6 @@ buf_page_is_corrupted(
973972
page_no, is_log_enabled, log_file, curr_algo,
974973
#endif /* UNIV_INNOCHECKSUM */
975974
true)) {
976-
977975
return(FALSE);
978976
}
979977
legacy_checksum_checked = true;
@@ -1084,7 +1082,6 @@ buf_page_is_corrupted(
10841082
page_id);
10851083
}
10861084
#endif /* UNIV_INNOCHECKSUM */
1087-
10881085
return(FALSE);
10891086
}
10901087

0 commit comments

Comments
 (0)