diff options
Diffstat (limited to 'storage/innobase/ibuf/ibuf0ibuf.cc')
-rw-r--r-- | storage/innobase/ibuf/ibuf0ibuf.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/storage/innobase/ibuf/ibuf0ibuf.cc b/storage/innobase/ibuf/ibuf0ibuf.cc index 9ed1efd35ff..261fbb05c63 100644 --- a/storage/innobase/ibuf/ibuf0ibuf.cc +++ b/storage/innobase/ibuf/ibuf0ibuf.cc @@ -4927,6 +4927,20 @@ ibuf_print( mutex_exit(&ibuf_mutex); } +/** Check if a page is all zeroes. +@param[in] read_buf database page +@param[in] size page size +@return whether the page is all zeroes */ +static bool buf_page_is_zeroes(const byte* read_buf, const page_size_t& size) +{ + for (ulint i = 0; i < size.physical(); i++) { + if (read_buf[i] != 0) { + return false; + } + } + return true; +} + /** Check the insert buffer bitmaps on IMPORT TABLESPACE. @param[in] trx transaction @param[in,out] space tablespace being imported |