Skip to content

Commit 1f2f17f

Browse files
MDEV-39061 mariadb-backup compatible wrapper for BACKUP SERVER
backup_innodb.cc: record the backup end LSN as the current log LSN (log_sys.get_lsn()) instead of the flushed LSN, so a committed transaction whose redo has not yet been flushed to disk is still covered by the backup's recovery target.
1 parent 0bd61a3 commit 1f2f17f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

storage/innobase/handler/backup_innodb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class InnoDB_backup
231231
goto skip_log_dup;
232232
backup_context &ctx= trx->lock.backup;
233233
ut_ad(ctx.max_first_lsn);
234-
ctx.last_lsn= log_sys.get_flushed_lsn(std::memory_order_relaxed);
234+
ctx.last_lsn= log_sys.get_lsn();
235235
while (!logs.empty())
236236
{
237237
lsn_t lsn{logs.back()};

0 commit comments

Comments
 (0)