drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
buf0types.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
26#pragma once
27#ifndef buf0types_h
28#define buf0types_h
29
42
44typedef byte buf_frame_t;
45
54
61
63/* @{ */
64#if UNIV_WORD_SIZE <= 4 /* 32-bit system */
66# define BUF_BUDDY_LOW_SHIFT 6
67#else /* 64-bit system */
69# define BUF_BUDDY_LOW_SHIFT 7
70#endif
71#define BUF_BUDDY_LOW (1 << BUF_BUDDY_LOW_SHIFT)
75#define BUF_BUDDY_SIZES (UNIV_PAGE_SIZE_SHIFT - BUF_BUDDY_LOW_SHIFT)
77#define BUF_BUDDY_SIZES_MAX (UNIV_PAGE_SIZE_SHIFT_MAX - BUF_BUDDY_LOW_SHIFT)
78
82#define BUF_BUDDY_HIGH (BUF_BUDDY_LOW << BUF_BUDDY_SIZES)
83/* @} */
84
85#endif
86
byte buf_frame_t
Definition buf0types.h:44
struct buf_pool_stat_struct buf_pool_stat_t
Definition buf0types.h:39
struct buf_chunk_struct buf_chunk_t
Definition buf0types.h:35
struct buf_pool_struct buf_pool_t
Definition buf0types.h:37
buf_flush
Definition buf0types.h:47
@ BUF_FLUSH_LRU
Definition buf0types.h:48
@ BUF_FLUSH_LIST
Definition buf0types.h:50
@ BUF_FLUSH_SINGLE_PAGE
Definition buf0types.h:49
@ BUF_FLUSH_N_TYPES
Definition buf0types.h:52
struct buf_page_struct buf_page_t
Definition buf0types.h:31
struct buf_buddy_stat_struct buf_buddy_stat_t
Definition buf0types.h:41
buf_io_fix
Definition buf0types.h:56
@ BUF_IO_NONE
Definition buf0types.h:57
@ BUF_IO_WRITE
Definition buf0types.h:59
@ BUF_IO_READ
Definition buf0types.h:58
struct buf_block_struct buf_block_t
Definition buf0types.h:33
The buffer pool statistics structure.
Definition buf0buf.h:1555
The buffer pool structure.
Definition buf0buf.h:1594