diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-05-22 14:24:00 +0300 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-05-22 14:24:00 +0300 |
commit | d12dbe77e2328aa346443b22df70c37f78795de3 (patch) | |
tree | bfbe433822377a9c1e0255b47c6c1d0a6eaf699d /storage/xtradb/include/buf0buf.h | |
parent | 9d399c9f35ca5a85152adddc1c88a304f87f660c (diff) | |
parent | 972a14b59a0ec12b01c9a7f5c8867294fd4f40db (diff) | |
download | mariadb-git-d12dbe77e2328aa346443b22df70c37f78795de3.tar.gz |
MDEV-6246: Merge 10.0.10-FusionIO to 10.1.
Diffstat (limited to 'storage/xtradb/include/buf0buf.h')
-rw-r--r-- | storage/xtradb/include/buf0buf.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/storage/xtradb/include/buf0buf.h b/storage/xtradb/include/buf0buf.h index 8e2c283476a..7d7c8de6907 100644 --- a/storage/xtradb/include/buf0buf.h +++ b/storage/xtradb/include/buf0buf.h @@ -1,6 +1,7 @@ /***************************************************************************** Copyright (c) 1995, 2013, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 2013, SkySQL Ab. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -1508,6 +1509,12 @@ struct buf_page_t{ state == BUF_BLOCK_ZIP_PAGE and zip.data == NULL means an active buf_pool->watch */ + + ulint write_size; /* Write size is set when this + page is first time written and then + if written again we check is TRIM + operation needed. */ + #ifndef UNIV_HOTBACKUP buf_page_t* hash; /*!< node used in chaining to buf_pool->page_hash or @@ -2149,6 +2156,20 @@ struct CheckUnzipLRUAndLRUList { }; #endif /* UNIV_DEBUG || defined UNIV_BUF_DEBUG */ +/*********************************************************************//** +Aquire LRU list mutex */ +void +buf_pool_mutex_enter( +/*=================*/ + buf_pool_t* buf_pool); /*!< in: buffer pool */ +/*********************************************************************//** +Exit LRU list mutex */ +void +buf_pool_mutex_exit( +/*================*/ + buf_pool_t* buf_pool); /*!< in: buffer pool */ + + #ifndef UNIV_NONINL #include "buf0buf.ic" #endif |