From 364910b122478bdfb8fe66bdd006f45e33121c12 Mon Sep 17 00:00:00 2001 From: marko Date: Fri, 12 Dec 2008 14:18:52 +0000 Subject: [PATCH] branches/innodb+: Merge revisions 3498:3519 from branches/zip: ------------------------------------------------------------------------ r3514 | marko | 2008-12-12 13:39:40 +0200 (Fri, 12 Dec 2008) | 3 lines branches/zip: btr_cur_search_to_nth_level(): Remove a duplicate check for (rw_latch != RW_NO_LATCH) around debug code. ------------------------------------------------------------------------ Other branches/zip revisions in that range were backported from branches/innodb+ and were thus not merged back to branches/innodb+. --- btr/btr0cur.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/btr/btr0cur.c b/btr/btr0cur.c index 638c1fe6e19..c6d4b719e90 100644 --- a/btr/btr0cur.c +++ b/btr/btr0cur.c @@ -623,17 +623,13 @@ retry_page_get: block->check_index_page_at_flush = TRUE; page = buf_block_get_frame(block); -#ifdef UNIV_ZIP_DEBUG if (rw_latch != RW_NO_LATCH) { - const page_zip_des_t* page_zip; - - page_zip = buf_block_get_page_zip(block); - +#ifdef UNIV_ZIP_DEBUG + const page_zip_des_t* page_zip + = buf_block_get_page_zip(block); ut_a(!page_zip || page_zip_validate(page_zip, page)); - } #endif /* UNIV_ZIP_DEBUG */ - if (rw_latch != RW_NO_LATCH) { buf_block_dbg_add_level(block, SYNC_TREE_NODE); }