diff options
author | Inaam Rana <inaam.rana@oracle.com> | 2011-07-19 10:54:59 -0400 |
---|---|---|
committer | Inaam Rana <inaam.rana@oracle.com> | 2011-07-19 10:54:59 -0400 |
commit | 588a546bf1634612e3b03773e36529330436fc4c (patch) | |
tree | 83032f0a82682e5140d4e84af9609ad79261c723 /storage/innobase/srv | |
parent | a31dc61865b537da7e8a3602080920f87756fb02 (diff) | |
parent | 41258f8e6c46d06e817d55921c66309ae9701799 (diff) | |
download | mariadb-git-588a546bf1634612e3b03773e36529330436fc4c.tar.gz |
Merge from 5.1 the fix for Bug 12356373
Diffstat (limited to 'storage/innobase/srv')
-rw-r--r-- | storage/innobase/srv/srv0srv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c index 04503d25cd4..c7427abdddd 100644 --- a/storage/innobase/srv/srv0srv.c +++ b/storage/innobase/srv/srv0srv.c @@ -222,6 +222,8 @@ UNIV_INTERN ulint srv_n_file_io_threads = ULINT_MAX; UNIV_INTERN ulint srv_n_read_io_threads = ULINT_MAX; UNIV_INTERN ulint srv_n_write_io_threads = ULINT_MAX; +/* Switch to enable random read ahead. */ +UNIV_INTERN my_bool srv_random_read_ahead = FALSE; /* User settable value of the number of pages that must be present in the buffer cache and accessed sequentially for InnoDB to trigger a readahead request. */ @@ -2032,6 +2034,8 @@ srv_export_innodb_status(void) export_vars.innodb_buffer_pool_wait_free = srv_buf_pool_wait_free; export_vars.innodb_buffer_pool_pages_flushed = srv_buf_pool_flushed; export_vars.innodb_buffer_pool_reads = srv_buf_pool_reads; + export_vars.innodb_buffer_pool_read_ahead_rnd + = stat.n_ra_pages_read_rnd; export_vars.innodb_buffer_pool_read_ahead = stat.n_ra_pages_read; export_vars.innodb_buffer_pool_read_ahead_evicted |