Skip to content
Permalink
Browse files
Do fast exit with error code and FATAL ERROR message, if innodb canno…
…t start during prepare.

Otherwise, it is possible for "prepare" to exit with error code 0,
even if it did not work at all.
  • Loading branch information
vaintroub committed Apr 23, 2019
1 parent d315b4f commit 6b5d3c5
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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);

0 comments on commit 6b5d3c5

Please sign in to comment.