diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-03-04 23:09:22 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-03-05 09:04:30 +0100 |
commit | 545cba13eb4e013363a126754c040c335874c386 (patch) | |
tree | cfef0f9572bcad8600670798d67082f268b45467 /extra | |
parent | 7759991a06d54630214f19eaa0ec39bd21bf09df (diff) | |
download | mariadb-git-545cba13eb4e013363a126754c040c335874c386.tar.gz |
MDEV-22929 fixup. Print "completed OK!" if page corruption and --log-innodb-page-corruption
Since we do not stop at corrupted page error, there is no reason to log
a backup error.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index 53301fd8e75..ffb09c73edb 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -4718,13 +4718,12 @@ fail_before_log_copying_thread_start: log_file_op = NULL; pthread_mutex_destroy(&backup_mutex); pthread_cond_destroy(&scanned_lsn_cond); - if (opt_log_innodb_page_corruption && !corrupted_pages.empty()) { + if (!corrupted_pages.empty()) { + ut_ad(opt_log_innodb_page_corruption); msg("Error: corrupted innodb pages are found and logged to " MB_CORRUPTED_PAGES_FILE " file"); - return false; } - else - return(true); + return(true); } |