Report any innodb_buf_pool_dump_pct restriction

This commit is contained in:
Daniel Black 2016-12-05 17:21:31 +11:00
parent 050a05bdb7
commit d04cb70cc3
2 changed files with 8 additions and 0 deletions

View file

@ -322,6 +322,10 @@ buf_dump(
t_pages = buf_pool->curr_size
* srv_buf_pool_dump_pct / 100;
if (n_pages > t_pages) {
buf_dump_status(STATUS_INFO,
"Instance %d, restricted to %u pages " \
"due to innodb_buf_pool_dump_pct (%d)",
i, t_pages, srv_buf_pool_dump_pct);
n_pages = t_pages;
}

View file

@ -256,6 +256,10 @@ buf_dump(
t_pages = buf_pool->curr_size
* srv_buf_pool_dump_pct / 100;
if (n_pages > t_pages) {
buf_dump_status(STATUS_INFO,
"Instance %d, restricted to %u pages " \
"due to innodb_buf_pool_dump_pct (%d)",
i, t_pages, srv_buf_pool_dump_pct);
n_pages = t_pages;
}