1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-14997 mariabackup crashes with invalid --innodb-flush-method

Avoid NULL pointer dereference when shutting down after invalid parameters
were parsed.
This commit is contained in:
Vladislav Vaintroub
2018-02-15 17:40:14 +00:00
parent 5ab4602810
commit a08121c978

View File

@@ -3569,7 +3569,9 @@ xtrabackup_backup_func()
if(innodb_init_param()) {
fail:
stop_backup_threads();
innodb_shutdown();
if (fil_system) {
innodb_shutdown();
}
return(false);
}