Skip to content

Commit

Permalink
Merge 10.5 into 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Jun 16, 2022
2 parents e99ba4a + 27309fc commit 5bb90cb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions extra/mariabackup/xtrabackup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4614,32 +4614,32 @@ static bool xtrabackup_backup_func()
reread_log_header:
dberr_t err = recv_find_max_checkpoint(&max_cp_field);

if (err != DB_SUCCESS) {
if (err != DB_SUCCESS)
msg("Error: cannot read redo log header");
unlock_and_fail:
mysql_mutex_unlock(&log_sys.mutex);
}

if (log_sys.log.format == 0) {
else if (log_sys.log.format == 0) {
msg("Error: cannot process redo log before MariaDB 10.2.2");
goto unlock_and_fail;
err = DB_ERROR;
}
else {
byte* buf = log_sys.checkpoint_buf;
checkpoint_lsn_start = log_sys.log.get_lsn();
checkpoint_no_start = log_sys.next_checkpoint_no;

byte* buf = log_sys.checkpoint_buf;
checkpoint_lsn_start = log_sys.log.get_lsn();
checkpoint_no_start = log_sys.next_checkpoint_no;

log_sys.log.read(max_cp_field, {buf, OS_FILE_LOG_BLOCK_SIZE});

if (checkpoint_no_start != mach_read_from_8(buf + LOG_CHECKPOINT_NO)
|| checkpoint_lsn_start
!= mach_read_from_8(buf + LOG_CHECKPOINT_LSN)
|| log_sys.log.get_lsn_offset()
!= mach_read_from_8(buf + LOG_CHECKPOINT_OFFSET))
goto reread_log_header;
log_sys.log.read(max_cp_field, {buf, OS_FILE_LOG_BLOCK_SIZE});

if (checkpoint_no_start
!= mach_read_from_8(buf + LOG_CHECKPOINT_NO)
|| checkpoint_lsn_start
!= mach_read_from_8(buf + LOG_CHECKPOINT_LSN)
|| log_sys.log.get_lsn_offset()
!= mach_read_from_8(buf + LOG_CHECKPOINT_OFFSET))
goto reread_log_header;
}
mysql_mutex_unlock(&log_sys.mutex);

if (err != DB_SUCCESS)
goto fail;

xtrabackup_init_datasinks();

if (!select_history()) {
Expand Down

0 comments on commit 5bb90cb

Please sign in to comment.