1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-30000: Force an InnoDB checkpoint in mariadb-backup

At the start of mariadb-backup --backup, trigger a flush of the
InnoDB buffer pool, so that as little log as possible will have
to be copied.

The previously debug-build-only interface
SET GLOBAL innodb_log_checkpoint_now=ON;
will be made available on all builds, and
mariadb-backup --backup will invoke it, unless the option
--skip-innodb-log-checkpoint-now is specified.

Reviewed by: Vladislav Vaintroub
This commit is contained in:
Marko Mäkelä
2025-03-10 08:48:43 +02:00
parent 5b686cc8f9
commit 652f33e0a4
9 changed files with 45 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ insert into t2 values (6, repeat('%', 400));
# Copy the t1.ibd, t2.ibd file
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup_1;
--disable_result_log
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --skip-innodb-log-checkpoint-now --target-dir=$targetdir;
--enable_result_log
echo # xtrabackup prepare;