=== modified file 'storage/innobase/buf/buf0buf.cc' --- storage/innobase/buf/buf0buf.cc 2013-06-10 20:44:22 +0000 +++ storage/innobase/buf/buf0buf.cc 2013-08-27 07:29:24 +0000 @@ -1265,6 +1265,8 @@ buf_pool->instance_no = instance_no; buf_pool->old_pool_size = buf_pool_size; buf_pool->curr_size = chunk->size; + buf_pool->read_ahead_area + = ut_min(64, ut_2_power_up(buf_pool->curr_size / 32)); buf_pool->curr_pool_size = buf_pool->curr_size * UNIV_PAGE_SIZE; /* Number of locks protecting page_hash must be a === modified file 'storage/innobase/include/buf0buf.h' --- storage/innobase/include/buf0buf.h 2013-04-30 11:45:16 +0000 +++ storage/innobase/include/buf0buf.h 2013-08-27 07:29:24 +0000 @@ -1816,6 +1816,9 @@ ulint n_chunks; /*!< number of buffer pool chunks */ buf_chunk_t* chunks; /*!< buffer pool chunks */ ulint curr_size; /*!< current pool size in pages */ + ulint read_ahead_area;/*!< size in pages of the area which + the read-ahead algorithms read if + invoked */ hash_table_t* page_hash; /*!< hash table of buf_page_t or buf_block_t file pages, buf_page_in_file() == TRUE, === modified file 'storage/innobase/include/buf0rea.h' --- storage/innobase/include/buf0rea.h 2013-06-10 20:44:22 +0000 +++ storage/innobase/include/buf0rea.h 2013-08-27 07:29:24 +0000 @@ -161,8 +161,7 @@ /** The size in pages of the area which the read-ahead algorithms read if invoked */ -#define BUF_READ_AHEAD_AREA(b) \ - ut_min(64, ut_2_power_up((b)->curr_size / 32)) +#define BUF_READ_AHEAD_AREA(b) ((b)->read_ahead_area) /** @name Modes used in read-ahead @{ */ /** read only pages belonging to the insert buffer tree */