From 693056253e876318802d26797190a8f4eea20ff2 Mon Sep 17 00:00:00 2001 From: marko <> Date: Thu, 10 Nov 2005 09:31:10 +0000 Subject: [PATCH] branches/zip: buf_flush_buffered_writes(): Remove bogus assertion failure. --- buf/buf0flu.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/buf/buf0flu.c b/buf/buf0flu.c index 312fd5608b2..bbb5ab62fdb 100644 --- a/buf/buf0flu.c +++ b/buf/buf0flu.c @@ -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))) {