diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-05-24 21:37:21 +0300 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-05-24 21:37:21 +0300 |
commit | 1016ee9d77e8c9cd6e9bd114b808fff66f398255 (patch) | |
tree | e14ea38c4e7a8cfe794bdb00780a6d0c21cb0c20 /storage/innobase/include/buf0buf.h | |
parent | 105060e3077a30950bcefb7a05141176bdd25872 (diff) | |
parent | edf1fbd25b81ecb0d5636566b35fa2f7fb09b0b8 (diff) | |
download | mariadb-git-1016ee9d77e8c9cd6e9bd114b808fff66f398255.tar.gz |
Merge 10.0 -> 10.1
Diffstat (limited to 'storage/innobase/include/buf0buf.h')
-rw-r--r-- | storage/innobase/include/buf0buf.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h index e49bc837b75..351bf5a26db 100644 --- a/storage/innobase/include/buf0buf.h +++ b/storage/innobase/include/buf0buf.h @@ -1,6 +1,6 @@ /***************************************************************************** -Copyright (c) 1995, 2013, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 1995, 2014, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 2013, 2014, SkySQL Ab. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under @@ -654,6 +654,15 @@ buf_page_is_corrupted( ulint zip_size) /*!< in: size of compressed page; 0 for uncompressed pages */ __attribute__((nonnull, warn_unused_result)); +/********************************************************************//** +Checks if a page is all zeroes. +@return TRUE if the page is all zeroes */ +bool +buf_page_is_zeroes( +/*===============*/ + const byte* read_buf, /*!< in: a database page */ + const ulint zip_size); /*!< in: size of compressed page; + 0 for uncompressed pages */ #ifndef UNIV_HOTBACKUP /**********************************************************************//** Gets the space id, page offset, and byte offset within page of a |