mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
branches/zip:
buf_flush_buffered_writes(): Remove bogus assertion failure.
This commit is contained in:
parent
6ff00e1dbb
commit
693056253e
1 changed files with 9 additions and 7 deletions
|
@ -265,21 +265,23 @@ buf_flush_buffered_writes(void)
|
|||
}
|
||||
|
||||
if (!block->check_index_page_at_flush) {
|
||||
} else if (page_is_comp(block->frame)
|
||||
&& UNIV_UNLIKELY(!page_simple_validate_new(
|
||||
} else if (page_is_comp(block->frame)) {
|
||||
if (UNIV_UNLIKELY(!page_simple_validate_new(
|
||||
block->frame))) {
|
||||
corrupted_page:
|
||||
buf_page_print(block->frame);
|
||||
buf_page_print(block->frame);
|
||||
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
" InnoDB: Apparent corruption of an index page n:o %lu in space %lu\n"
|
||||
"InnoDB: to be written to data file. We intentionally crash server\n"
|
||||
"InnoDB: to prevent corrupt data from ending up in data\n"
|
||||
"InnoDB: files.\n",
|
||||
(ulong) block->offset, (ulong) block->space);
|
||||
(ulong) block->offset,
|
||||
(ulong) block->space);
|
||||
|
||||
ut_error;
|
||||
ut_error;
|
||||
}
|
||||
} else if (UNIV_UNLIKELY(!page_simple_validate_old(
|
||||
block->frame))) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue