MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
buf0types.h
Go to the documentation of this file.
1
/*****************************************************************************
2
3
Copyright (c) 1995, 2013, Oracle and/or its affiliates. All Rights Reserved
4
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
8
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc.,
15
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16
17
*****************************************************************************/
18
19
/**************************************************/
26
#ifndef buf0types_h
27
#define buf0types_h
28
30
struct
buf_page_t
;
32
struct
buf_block_t
;
34
struct
buf_chunk_t;
36
struct
buf_pool_t
;
38
struct
buf_pool_stat_t
;
40
struct
buf_buddy_stat_t
;
42
struct
buf_dblwr_t
;
43
45
typedef
byte
buf_frame_t
;
46
48
enum
buf_flush_t
{
49
BUF_FLUSH_LRU
= 0,
50
BUF_FLUSH_LIST
,
52
BUF_FLUSH_SINGLE_PAGE
,
54
BUF_FLUSH_N_TYPES
55
};
56
59
enum
buf_remove_t
{
60
BUF_REMOVE_ALL_NO_WRITE
,
62
BUF_REMOVE_FLUSH_NO_WRITE
,
64
BUF_REMOVE_FLUSH_WRITE
66
};
67
69
enum
buf_io_fix
{
70
BUF_IO_NONE
= 0,
71
BUF_IO_READ
,
72
BUF_IO_WRITE
,
73
BUF_IO_PIN
76
};
77
80
enum
srv_checksum_algorithm_t
{
81
SRV_CHECKSUM_ALGORITHM_CRC32
,
83
SRV_CHECKSUM_ALGORITHM_STRICT_CRC32
,
85
SRV_CHECKSUM_ALGORITHM_INNODB
,
87
SRV_CHECKSUM_ALGORITHM_STRICT_INNODB
,
89
SRV_CHECKSUM_ALGORITHM_NONE
,
91
SRV_CHECKSUM_ALGORITHM_STRICT_NONE
93
};
94
96
/* @{ */
98
#define BUF_BUDDY_LOW_SHIFT UNIV_ZIP_SIZE_SHIFT_MIN
99
101
#define BUF_BUDDY_LOW (1U << BUF_BUDDY_LOW_SHIFT)
102
104
#define BUF_BUDDY_SIZES (UNIV_PAGE_SIZE_SHIFT - BUF_BUDDY_LOW_SHIFT)
105
107
#define BUF_BUDDY_SIZES_MAX (UNIV_PAGE_SIZE_SHIFT_MAX \
108
- BUF_BUDDY_LOW_SHIFT)
109
113
#define BUF_BUDDY_HIGH (BUF_BUDDY_LOW << BUF_BUDDY_SIZES)
114
/* @} */
115
116
#endif
/* buf0types.h */
storage
innobase
include
buf0types.h
Generated on Sat Nov 9 2013 01:26:34 for MySQL 5.6.14 Source Code Document by
1.8.1.2