summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel.black@au.ibm.com>2016-12-05 17:21:31 +1100
committerDaniel Black <daniel.black@au.ibm.com>2016-12-06 13:37:17 +1100
commitd04cb70cc3389f608ee7fdb4221f35cf8109f81b (patch)
tree491f138f1c98bca5bd004862c958b17dfba7b814
parent050a05bdb73da01741193c9eb5c4fc672883e94b (diff)
downloadmariadb-git-d04cb70cc3389f608ee7fdb4221f35cf8109f81b.tar.gz
Report any innodb_buf_pool_dump_pct restriction
-rw-r--r--storage/innobase/buf/buf0dump.cc4
-rw-r--r--storage/xtradb/buf/buf0dump.cc4
2 files changed, 8 insertions, 0 deletions
diff --git a/storage/innobase/buf/buf0dump.cc b/storage/innobase/buf/buf0dump.cc
index 800fcd07435..7042e25d5ba 100644
--- a/storage/innobase/buf/buf0dump.cc
+++ b/storage/innobase/buf/buf0dump.cc
@@ -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;
}
diff --git a/storage/xtradb/buf/buf0dump.cc b/storage/xtradb/buf/buf0dump.cc
index fa7267c1d01..415eb8b50cb 100644
--- a/storage/xtradb/buf/buf0dump.cc
+++ b/storage/xtradb/buf/buf0dump.cc
@@ -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;
}