mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
aedce8cde3
of the buffer pool from buf_block_t to buf_page_t. Replace some buf_block_t* parameters with buf_page_t*. Add accessor functions.
36 lines
853 B
C
36 lines
853 B
C
/******************************************************
|
|
The database buffer pool global types for the directory
|
|
|
|
(c) 1995 Innobase Oy
|
|
|
|
Created 11/17/1995 Heikki Tuuri
|
|
*******************************************************/
|
|
|
|
#ifndef buf0types_h
|
|
#define buf0types_h
|
|
|
|
typedef struct buf_page_struct buf_page_t;
|
|
typedef struct buf_block_struct buf_block_t;
|
|
typedef struct buf_chunk_struct buf_chunk_t;
|
|
typedef struct buf_pool_struct buf_pool_t;
|
|
|
|
/* The 'type' used of a buffer frame */
|
|
typedef byte buf_frame_t;
|
|
|
|
/* Flags for flush types */
|
|
enum buf_flush {
|
|
BUF_FLUSH_LRU = 0,
|
|
BUF_FLUSH_SINGLE_PAGE,
|
|
BUF_FLUSH_LIST,
|
|
BUF_FLUSH_N_TYPES /* index of last element + 1 */
|
|
};
|
|
|
|
/* Flags for io_fix types */
|
|
enum buf_io_fix {
|
|
BUF_IO_NONE = 0, /**< no pending I/O */
|
|
BUF_IO_READ, /**< read pending */
|
|
BUF_IO_WRITE /**< write pending */
|
|
};
|
|
|
|
#endif
|
|
|