From 89dfd91beafa2dc65c9f93dbf83c2f94cd74a322 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura <30927085+nanorkyo@users.noreply.github.com> Date: Thu, 7 Mar 2019 13:14:17 +0900 Subject: [PATCH] Fix startup error on innodb_dedicated_server=ON. When innodb_dedicated_server is ON and 2GiB <= server's physical memory < 3GiB, mysql-server will be shutdown like following: ------- [ERROR] [MY-012961] [InnoDB] Only one log file found [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error not found. [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. [ERROR] [MY-010119] [Server] Aborting ------- In this case, because innodb_log_files_in_group is set to 1. --- storage/innobase/handler/ha_innodb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index dba4c7241756..49bc5e6a0490 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -4013,7 +4013,7 @@ static int innodb_log_file_size_init() { var_name_log_files, static_cast(strlen(var_name_log_files)), &source)) { if (source == COMPILED) { - if (auto_buf_pool_size_in_gb < 1.0) { + if (auto_buf_pool_size_in_gb < 1.5) { ; } else if (auto_buf_pool_size_in_gb < 8.0) { srv_n_log_files = static_cast(round(auto_buf_pool_size_in_gb));