Commit 75137522 authored by Jan Lindström's avatar Jan Lindström

MDEV-6257: MariaDB 5.5 fails to start with 10.0 InnoDB log files

Analysis: By default 10.0 creates 48M log files and 5.5 assumes they
are 5M.

Fix: Remove the error and do size comparison later.
parent a55c1594
......@@ -624,16 +624,17 @@ open_or_create_log_file(
if (size != srv_calc_low32(srv_log_file_size)
|| size_high != srv_calc_high32(srv_log_file_size)) {
/* By default 5.6 based InnoDB will create 48M log
file but 5.5 only 5M. Actual size error must be
tested later. */
fprintf(stderr,
"InnoDB: Error: log file %s is"
"InnoDB: Warning: log file %s is"
" of different size %lu %lu bytes\n"
"InnoDB: than specified in the .cnf"
" file %lu %lu bytes!\n",
name, (ulong) size_high, (ulong) size,
(ulong) srv_calc_high32(srv_log_file_size),
(ulong) srv_calc_low32(srv_log_file_size));
return(DB_ERROR);
}
} else {
*log_file_created = TRUE;
......
......@@ -618,16 +618,17 @@ open_or_create_log_file(
if (size != srv_calc_low32(srv_log_file_size)
|| size_high != srv_calc_high32(srv_log_file_size)) {
/* By default 5.6 based InnoDB will create 48M log
file but 5.5 only 5M. Actual size error must be
tested later. */
fprintf(stderr,
"InnoDB: Error: log file %s is"
"InnoDB: Warning: log file %s is"
" of different size %lu %lu bytes\n"
"InnoDB: than specified in the .cnf"
" file %lu %lu bytes!\n",
name, (ulong) size_high, (ulong) size,
(ulong) srv_calc_high32(srv_log_file_size),
(ulong) srv_calc_low32(srv_log_file_size));
return(DB_ERROR);
}
} else {
*log_file_created = TRUE;
......
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