diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-06-02 12:55:00 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-06-02 17:46:05 +0200 |
commit | 72d01f24260045de558e84f941c48ed135cdb437 (patch) | |
tree | efa6d0ab152217dc31d0f329136ab460deed4664 /storage/innobase/include/fil0fil.ic | |
parent | 5fc53b7cfed0135e12cedb18c83823b8318f9267 (diff) | |
download | mariadb-git-72d01f24260045de558e84f941c48ed135cdb437.tar.gz |
remove few #ifdefs in innodb/xtradb
Diffstat (limited to 'storage/innobase/include/fil0fil.ic')
-rw-r--r-- | storage/innobase/include/fil0fil.ic | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/include/fil0fil.ic b/storage/innobase/include/fil0fil.ic index 6ec7c1adec8..d00b01097ea 100644 --- a/storage/innobase/include/fil0fil.ic +++ b/storage/innobase/include/fil0fil.ic @@ -105,7 +105,6 @@ fil_node_get_block_size( return (node->file_block_size); } -#ifdef UNIV_DEBUG /****************************************************************//** Validate page type. @return true if valid, false if not */ @@ -114,6 +113,7 @@ bool fil_page_type_validate( const byte* page) /*!< in: page */ { +#ifdef UNIV_DEBUG ulint page_type = mach_read_from_2(page + FIL_PAGE_TYPE); #ifdef UNIV_ENCRYPTION_EXTRA_DEBUG uint key_version = mach_read_from_4(page + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION); @@ -167,8 +167,8 @@ fil_page_type_validate( return false; } +#endif /* UNIV_DEBUG */ return true; } -#endif /* UNIV_DEBUG */ #endif /* fil0fil_ic */ |