Commit 97a780f1 authored by Jimmy Yang's avatar Jimmy Yang

Bug #48026 Log start and end of InnoDB buffer pool initialization to

the error log
parent 618d6e72
...@@ -1334,8 +1334,27 @@ innobase_start_or_create_for_mysql(void) ...@@ -1334,8 +1334,27 @@ innobase_start_or_create_for_mysql(void)
fil_init(srv_file_per_table ? 50000 : 5000, fil_init(srv_file_per_table ? 50000 : 5000,
srv_max_n_open_files); srv_max_n_open_files);
/* Print time to initialize the buffer pool */
ut_print_timestamp(stderr);
fprintf(stderr,
" InnoDB: Initializing buffer pool, size =");
if (srv_buf_pool_size >= 1024 * 1024 * 1024) {
fprintf(stderr,
" %.1fG\n",
((double) srv_buf_pool_size) / (1024 * 1024 * 1024));
} else {
fprintf(stderr,
" %.1fM\n",
((double) srv_buf_pool_size) / (1024 * 1024));
}
err = buf_pool_init(srv_buf_pool_size, srv_buf_pool_instances); err = buf_pool_init(srv_buf_pool_size, srv_buf_pool_instances);
ut_print_timestamp(stderr);
fprintf(stderr,
" InnoDB: Completed initialization of buffer pool\n");
if (err != DB_SUCCESS) { if (err != DB_SUCCESS) {
fprintf(stderr, fprintf(stderr,
"InnoDB: Fatal error: cannot allocate the memory" "InnoDB: Fatal error: cannot allocate the memory"
......
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