mariadb/mysql-test/suite/binlog_in_engine/purge_restart.result
Kristian Nielsen 7081f2a58e Binlog-in-engine: New binlog implementation integrated in InnoDB
Implement an improved binlog implementation that is integrated into
the storage engine. The new implementation is enabled with the
--binlog-storage-engine option. Initially the InnoDB storage engine
implements the binlog.

Integrating the binlog in the storage engine improves performance,
since it makes the InnoDB redo log the single source of truth and
avoids the need for expensive two-phase commit between binlog and
engine. It also makes it possible to disable durability (set
--innodb-flush-log-at-trx-commit=0) to further improve performance,
while still preserving the ability to recover the binlog and database
into a consistent state after a crash.

The new binlog implementation also greatly improves the internal
design and implementation of the binlog, and enables future
enhancements for replication.

This is a squash of the original 11.4-based patch series.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2026-01-23 03:21:03 +01:00

31 lines
995 B
Text

include/reset_master.inc
SET GLOBAL slave_connections_needed_for_purge= 0;
SET GLOBAL max_binlog_total_size= 128*1024;
Warnings:
Note 1375 Binary log 'binlog-000000.ibb' is not purged because the binlog file is in active use
CREATE TABLE t1(a INT NOT NULL, b INT NOT NULL, c LONGBLOB, PRIMARY KEY(a, b)) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1, 0, REPEAT('x', 262144-8000));
BEGIN;
INSERT INTO t1 VALUES (2, 0, REPEAT('y', 40000));
INSERT INTO t1 VALUES (2, 1, 'end');
COMMIT;
show binary logs;
Log_name File_size
binlog-000000.ibb #
binlog-000001.ibb #
binlog-000002.ibb #
# restart
SET @old_min_slaves= @@GLOBAL.slave_connections_needed_for_purge;
SET GLOBAL slave_connections_needed_for_purge= 0;
show binary logs;
Log_name File_size
binlog-000000.ibb #
binlog-000001.ibb #
binlog-000002.ibb #
PURGE BINARY LOGS TO 'binlog-000001.ibb';
show binary logs;
Log_name File_size
binlog-000001.ibb #
binlog-000002.ibb #
SET GLOBAL slave_connections_needed_for_purge= @old_min_slaves;
DROP TABLE t1;