Skip to content

Commit d04cb70

Browse files
committed
Report any innodb_buf_pool_dump_pct restriction
1 parent 050a05b commit d04cb70

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

storage/innobase/buf/buf0dump.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ buf_dump(
322322
t_pages = buf_pool->curr_size
323323
* srv_buf_pool_dump_pct / 100;
324324
if (n_pages > t_pages) {
325+
buf_dump_status(STATUS_INFO,
326+
"Instance %d, restricted to %u pages " \
327+
"due to innodb_buf_pool_dump_pct (%d)",
328+
i, t_pages, srv_buf_pool_dump_pct);
325329
n_pages = t_pages;
326330
}
327331

storage/xtradb/buf/buf0dump.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ buf_dump(
256256
t_pages = buf_pool->curr_size
257257
* srv_buf_pool_dump_pct / 100;
258258
if (n_pages > t_pages) {
259+
buf_dump_status(STATUS_INFO,
260+
"Instance %d, restricted to %u pages " \
261+
"due to innodb_buf_pool_dump_pct (%d)",
262+
i, t_pages, srv_buf_pool_dump_pct);
259263
n_pages = t_pages;
260264
}
261265

0 commit comments

Comments
 (0)