Commit 41068a89 authored by Haidong Ji's avatar Haidong Ji Committed by Daniel Black

MDEV-27314 Condense innodb buffer pool resize message

InnoDB buffer pool resize messages are more succinct from this change:

Before:
```
2022-05-07 17:10:33 0 [Note] InnoDB: Completed resizing buffer pool from 14745600 to 19660800 bytes.
2022-05-07 17:10:33 0 [Note] InnoDB: Completed resizing buffer pool.
2022-05-07 17:10:33 8 [Note] InnoDB: Completed resizing buffer pool. (New size: 19660800 bytes).
```
After:
```
2022-05-07 17:10:33 0 [Note] InnoDB: Completed resizing buffer pool from 14745600 to 19660800 bytes.
```

Additionally, the INNODB_BUFFER_POOL_RESIZE_STATUS has more complete
info: it contains both the old and new buffer pool size values.
parent c1752a9f
......@@ -7,7 +7,7 @@
let $wait_timeout = 180;
let $wait_condition =
SELECT SUBSTR(variable_value, 1, 31) = 'Completed resizing buffer pool.'
SELECT SUBSTR(variable_value, 1, 30) = 'Completed resizing buffer pool'
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status';
......
......@@ -15,7 +15,7 @@ SET GLOBAL innodb_buffer_pool_size=8388608;
let $wait_timeout = 60;
let $wait_condition =
SELECT SUBSTR(variable_value, 1, 31) = 'Completed resizing buffer pool.'
SELECT SUBSTR(variable_value, 1, 30) = 'Completed resizing buffer pool'
FROM information_schema.global_status
WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
--source include/wait_condition.inc
......
......@@ -8,7 +8,7 @@
let $wait_timeout = 180;
let $wait_condition =
SELECT SUBSTR(variable_value, 1, 31) = 'Completed resizing buffer pool.'
SELECT SUBSTR(variable_value, 1, 30) = 'Completed resizing buffer pool'
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status';
......
......@@ -93,7 +93,7 @@ DROP TABLE tr,tc,td;
let $wait_timeout = 180;
let $wait_condition =
SELECT SUBSTR(variable_value, 1, 31) = 'Completed resizing buffer pool.'
SELECT SUBSTR(variable_value, 1, 30) = 'Completed resizing buffer pool'
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status';
......
......@@ -25,7 +25,7 @@
--source include/have_innodb.inc
let $wait_condition =
SELECT SUBSTR(variable_value, 1, 31) = 'Completed resizing buffer pool.'
SELECT SUBSTR(variable_value, 1, 30) = 'Completed resizing buffer pool'
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status';
......
......@@ -1933,9 +1933,8 @@ inline void buf_pool_t::resize()
if (srv_buf_pool_old_size != srv_buf_pool_size) {
ib::info() << "Completed resizing buffer pool from "
<< srv_buf_pool_old_size
<< " to " << srv_buf_pool_size << " bytes.";
buf_resize_status("Completed resizing buffer pool from %zu to %zu bytes."
,srv_buf_pool_old_size, srv_buf_pool_size);
srv_buf_pool_old_size = srv_buf_pool_size;
}
......@@ -1947,11 +1946,8 @@ inline void buf_pool_t::resize()
}
#endif /* BTR_CUR_HASH_ADAPT */
if (!warning) {
buf_resize_status("Completed resizing buffer pool.");
} else {
if (warning)
buf_resize_status("Resizing buffer pool failed");
}
ut_d(validate());
......
......@@ -17419,9 +17419,6 @@ innodb_buffer_pool_size_update(THD*,st_mysql_sys_var*,void*, const void* save)
"Buffer pool resize requested");
buf_resize_start();
ib::info() << export_vars.innodb_buffer_pool_resize_status
<< " (New size: " << in_val << " bytes).";
}
/** The latest assigned innodb_ft_aux_table name */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment