Commit 6b5d3c51 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Do fast exit with error code and FATAL ERROR message, if innodb cannot start during prepare.

Otherwise, it is possible for "prepare" to exit with error code 0,
even if it did not work at all.
parent d315b4ff
......@@ -1989,10 +1989,8 @@ static bool innodb_init()
{
dberr_t err = innobase_start_or_create_for_mysql();
if (err != DB_SUCCESS) {
msg("mariabackup: innodb_init() returned %d (%s).",
die("mariabackup: innodb_init() returned %d (%s).",
err, ut_strerr(err));
innodb_shutdown();
return(TRUE);
}
return(FALSE);
......
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