summaryrefslogtreecommitdiff
path: root/storage/xtradb/include/buf0buf.h
diff options
context:
space:
mode:
authorJan Lindström <jplindst@mariadb.org>2014-02-03 10:08:15 +0200
committerJan Lindström <jplindst@mariadb.org>2014-02-03 10:08:15 +0200
commit8c5d5bc5de135ed143bfe91c99fd53a8c9b4487c (patch)
treecd274b3c051b562a306072d4ba9be6e9d7587752 /storage/xtradb/include/buf0buf.h
parentfebe99ec8d6b30236982a127fd5d194a7deceb44 (diff)
downloadmariadb-git-8c5d5bc5de135ed143bfe91c99fd53a8c9b4487c.tar.gz
Fixed merge error on InnoDB page compression level handling.
Merged page compression feature to XtraDB storage engine. Added feature where page compression can use lz4 compression method (innodb_use_lz4, default OFF).
Diffstat (limited to 'storage/xtradb/include/buf0buf.h')
-rw-r--r--storage/xtradb/include/buf0buf.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/storage/xtradb/include/buf0buf.h b/storage/xtradb/include/buf0buf.h
index ba2f413429c..8fedeeaa832 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
@@ -1489,6 +1490,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
@@ -2118,6 +2125,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