forked from yuanrongxi/innodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuf0rea.h
31 lines (21 loc) · 934 Bytes
/
buf0rea.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*********************************************************************
*从磁盘中将page数据读入buffer pool中,这里包括正常的页读取和预读页数据
*预读包括:
* 指定预读
* 随机预读
*********************************************************************/
#ifndef __buf0rea_h_
#define __buf0rea_h_
#include "univ.h"
#include "buf0types.h"
#include "buf0buf.h"
#define BUF_READ_AHEAD_AREA ut_min(64, ut_2_power_up(buf_pool->curr_size / 32))
/* Modes used in read-ahead */
#define BUF_READ_IBUF_PAGES_ONLY 131
#define BUF_READ_ANY_PAGE 132
ulint buf_read_page(ulint space, ulint offset);
ulint buf_read_ahead_linear(ulint space, ulint offset);
void buf_read_ibuf_merge_pages(ibool sync, ulint space, ulint* page_nos, ulint n_stored);
void buf_read_recv_pages(iool sync, ulint space, ulint* page_nos, ulint n_stored);
#endif
/*******************************************************************/