Skip to content

Commit

Permalink
Fix a typo which lead to compiler error on 32 bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
sanja-byelkin committed Apr 9, 2024
1 parent 42bda68 commit d8a60dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/mariabackup/aria_backup_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ bool BackupImpl::copy_log_tail(unsigned thread_num, bool finalize) {
goto exit;
}
DBUG_ASSERT(file_offset <= static_cast<my_off_t>(stat_info.st_size));
to_copy_size = static_cast<my_off_t>(stat_info.st_size) - file_offset;
to_copy_size = static_cast<size_t>(stat_info.st_size - file_offset);
to_copy_size = to_copy_size >= TRANSLOG_PAGE_SIZE ?
(align_down(to_copy_size, TRANSLOG_PAGE_SIZE) - TRANSLOG_PAGE_SIZE) : 0;
}
Expand Down

0 comments on commit d8a60dd

Please sign in to comment.