Skip to content
Permalink
Browse files
Bug#28867993: POSSIBLE ISSUE WITH MYSQL SERVER RESTART
on startup innodb is checking whether files "ib_logfileN"
(for N from 1 to 100) exist, and whether they're readable.
A non-existent file aborted the scan.
A directory instead of a file made InnoDB to fail.

Now it treats "directory exists" as "file doesn't exist".
  • Loading branch information
vuvova committed Jan 23, 2019
1 parent 31d592b commit 2a0f1d6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
@@ -0,0 +1,9 @@
create table t1 (a int) engine=innodb;
insert t1 values (1),(2);
create database ib_logfile2;
select * from t1;
a
1
2
drop table t1;
drop database ib_logfile2;
@@ -0,0 +1,12 @@
#
# Bug#28867993: POSSIBLE ISSUE WITH MYSQL SERVER RESTART
#

source include/have_innodb.inc;
create table t1 (a int) engine=innodb;
insert t1 values (1),(2);
create database ib_logfile2;
source include/restart_mysqld.inc;
select * from t1;
drop table t1;
drop database ib_logfile2;
@@ -2255,6 +2255,10 @@ innobase_start_or_create_for_mysql()
break;
}

if (stat_info.type != OS_FILE_TYPE_FILE) {
break;
}

if (!srv_file_check_mode(logfilename)) {
return(DB_ERROR);
}
@@ -2335,6 +2335,9 @@ innobase_start_or_create_for_mysql()
break;
}

if (stat_info.type != OS_FILE_TYPE_FILE) {
break;
}
if (!srv_file_check_mode(logfilename)) {
return(DB_ERROR);
}

0 comments on commit 2a0f1d6

Please sign in to comment.