MDEV-34062 compilation failure on 32bit

extra/mariabackup/xtrabackup.cc:3407:15: error: conversion from ‘lsn_t’ {aka ‘long long unsigned int’} to ‘size_t’ {aka ‘unsigned int’} may change value [-Werror=conversion]

followup for 6acada713a
This commit is contained in:
Sergei Golubchik 2025-01-14 13:56:19 +01:00
parent 9d80422f79
commit b04fb9fb43

View file

@ -3404,7 +3404,7 @@ static bool xtrabackup_copy_mmap_logfile()
/* Set the sequence bit (the backed-up log will not wrap around) */
size_t seqo= recv_sys.offset - seq_offset;
if (seqo < log_sys.START_OFFSET)
seqo+= log_sys.file_size - log_sys.START_OFFSET;
seqo+= static_cast<size_t>(log_sys.file_size - log_sys.START_OFFSET);
const byte *seq= &log_sys.buf[seqo];
ut_ad(*seq == log_sys.get_sequence_bit(recv_sys.lsn - seq_offset));
if (!*seq)