diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-09-16 07:37:00 +0300 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-09-16 07:37:00 +0300 |
commit | ec46381990af84e22d1598e6ca84f0647b177f76 (patch) | |
tree | 25bb644c970a0b98c4a5c160b46321294b1ebb6b /storage/xtradb/include/buf0buf.h | |
parent | 8db1f728e626be9f95db524d8a6afefdc3e1edb2 (diff) | |
download | mariadb-git-ec46381990af84e22d1598e6ca84f0647b177f76.tar.gz |
Avoid using log_sys mutex when printing out show engine innodb status,
instead peek (maybe) old data.
Diffstat (limited to 'storage/xtradb/include/buf0buf.h')
-rw-r--r-- | storage/xtradb/include/buf0buf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/xtradb/include/buf0buf.h b/storage/xtradb/include/buf0buf.h index 904822a7ce6..0f77404b1de 100644 --- a/storage/xtradb/include/buf0buf.h +++ b/storage/xtradb/include/buf0buf.h @@ -272,6 +272,15 @@ buf_pool_get_oldest_modification(void); /*==================================*/ /********************************************************************//** +Gets the smallest oldest_modification lsn for any page in the pool. Returns +zero if all modified pages have been flushed to disk. +@return oldest modification in pool, zero if none */ +UNIV_INTERN +lsn_t +buf_pool_get_oldest_modification_peek(void); +/*=======================================*/ + +/********************************************************************//** Allocates a buf_page_t descriptor. This function must succeed. In case of failure we assert in this function. */ UNIV_INLINE |