Skip to content

Commit 6c989d1

Browse files
author
Marko Mäkelä
committed
Fix a regression from WL#5580:
InnoDB would complain about LSN mismatch on compressed pages, even though there is no second copy of the LSN written on compressed pages. Noticed by Vasil Dimov when running innodb.innodb_bug56680.
1 parent d0d9c83 commit 6c989d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

storage/innobase/buf/buf0flu.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1090,8 +1090,10 @@ buf_flush_write_to_dblwr_and_datafile(
10901090

10911091
/* Check that the page as written to the doublewrite
10921092
buffer has sane LSN values. */
1093-
buf_flush_doublewrite_check_page_lsn(
1094-
((buf_block_t*) bpage)->frame);
1093+
if (!bpage->zip.data) {
1094+
buf_flush_doublewrite_check_page_lsn(
1095+
((buf_block_t*) bpage)->frame);
1096+
}
10951097
}
10961098

10971099
retry:

0 commit comments

Comments
 (0)