diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-06-12 14:26:32 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-06-12 14:26:32 +0300 |
commit | fa57479fcd893c290c8f6e8fef5367a5cf2b8c7a (patch) | |
tree | 5b6f0f3c3d641e034e5b5882589cbae680b17e64 /extra | |
parent | 58c56dd7f8e787c48b6f09a4d03cddd7c922588b (diff) | |
parent | 75b35a3b6897a0fcef28d73a480d6d9d65c7ac9b (diff) | |
download | mariadb-git-fa57479fcd893c290c8f6e8fef5367a5cf2b8c7a.tar.gz |
Merge 10.0 into 10.1
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index 5b3f1527133..087fa142629 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -1899,8 +1899,8 @@ error: return(TRUE); } -static my_bool -innodb_end(void) +static void +innodb_end() { srv_fast_shutdown = (ulint) innobase_fast_shutdown; innodb_inited = 0; @@ -1908,9 +1908,7 @@ innodb_end(void) msg("xtrabackup: starting shutdown with innodb_fast_shutdown = %lu\n", srv_fast_shutdown); - if (innobase_shutdown_for_mysql() != DB_SUCCESS) { - goto error; - } + innodb_shutdown(); free(internal_innobase_data_file_path); internal_innobase_data_file_path = NULL; @@ -1921,12 +1919,6 @@ innodb_end(void) // pthread_mutex_destroy(&commit_threads_m); // pthread_mutex_destroy(&commit_cond_m); // pthread_cond_destroy(&commit_cond); - - return(FALSE); - -error: - msg("xtrabackup: innodb_end(): Error occured.\n"); - return(TRUE); } /* ================= common ================= */ @@ -4819,8 +4811,7 @@ end: xb_filters_free(); /* shutdown InnoDB */ - if(innodb_end()) - exit(EXIT_FAILURE); + innodb_end(); } /* ================= prepare ================= */ @@ -6763,8 +6754,7 @@ next_node: xb_write_galera_info(xtrabackup_incremental); #endif - if(innodb_end()) - goto error_cleanup; + innodb_end(); innodb_free_param(); @@ -6850,9 +6840,7 @@ next_node: if(innodb_init()) goto error; - if(innodb_end()) - goto error; - + innodb_end(); innodb_free_param(); } |