2005-10-27 09:29:40 +02:00
|
|
|
/******************************************************
|
|
|
|
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
|
|
|
|
|
2006-11-24 09:32:18 +01:00
|
|
|
typedef struct buf_page_struct buf_page_t;
|
2005-10-27 09:29:40 +02:00
|
|
|
typedef struct buf_block_struct buf_block_t;
|
2006-11-14 15:27:26 +01:00
|
|
|
typedef struct buf_chunk_struct buf_chunk_t;
|
2005-10-27 09:29:40 +02:00
|
|
|
typedef struct buf_pool_struct buf_pool_t;
|
|
|
|
|
|
|
|
/* The 'type' used of a buffer frame */
|
|
|
|
typedef byte buf_frame_t;
|
|
|
|
|
2006-11-27 15:12:09 +01:00
|
|
|
/* 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 */
|
|
|
|
};
|
2005-10-27 09:29:40 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|