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 | fce189fadba6920ec9b3b9e3775cb67c7c70dac6 (patch) | |
tree | 83032f0a82682e5140d4e84af9609ad79261c723 /storage/innobase/srv | |
parent | f3cc6c566a8454d9e20c682bfc5993ce695bfe3b (diff) | |
parent | aa3d29681e7ac0e005d04b2c18127746b7bd9f9e (diff) | |
download | mariadb-git-fce189fadba6920ec9b3b9e3775cb67c7c70dac6.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 |