diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-17 19:45:42 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-17 19:45:42 +0200 |
commit | 69147040a66b90e8c861ce11a13f208d2a0680a2 (patch) | |
tree | de8ce2c46f87fe2aff69681c2d6ed0a0f472df5d /storage/innobase/include/buf0buf.h | |
parent | 670bc0b352187e1b62752b317971c037d783e8db (diff) | |
download | mariadb-git-69147040a66b90e8c861ce11a13f208d2a0680a2.tar.gz |
MDEV-9236: Dramatically overallocation of InnoDB buffer pool leads to crash
Part I: Add diagnostics to page allocation if state is not correct
but do not assert if it is incorrect.
Diffstat (limited to 'storage/innobase/include/buf0buf.h')
-rw-r--r-- | storage/innobase/include/buf0buf.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h index 6c8e8e00507..985bddd1317 100644 --- a/storage/innobase/include/buf0buf.h +++ b/storage/innobase/include/buf0buf.h @@ -863,7 +863,17 @@ UNIV_INLINE enum buf_page_state buf_page_get_state( /*===============*/ - const buf_page_t* bpage); /*!< in: pointer to the control block */ + const buf_page_t* bpage); /*!< in: pointer to the control + block */ +/*********************************************************************//** +Gets the state name for state of a block +@return name or "CORRUPTED" */ +UNIV_INLINE +const char* +buf_get_state_name( +/*===============*/ + const buf_block_t* block); /*!< in: pointer to the control + block */ /*********************************************************************//** Gets the state of a block. @return state */ |