mariadb/storage/innobase/trx
Kristian Nielsen d26851a575 MDEV-34705: Binlog-in-engine: Crash-safe slave
This patch makes replication crash-safe with the new binlog implementation,
even when --innodb-flush-log-at-trx-commit=0|2. The point is to not send any
binlog events to the slave until they have become durable on master, thus
avoiding that a slave may replicate a transaction that is lost during master
recovery, diverging the slave from the master.

Keep track of which point in the binlog has been durably synced to disk
(meaning the corresponding LSN has been durably synced to disk in the InnoDB
redo log). Each write to the binlog inserts an entry with offset and
corresponding LSN in a FIFO. Dump threads will first read only up to the
durable point in the binlog. A dump thread will then check the LSN fifo, and
do an InnoDB redo log sync if anything is pending. Then the FIFO is emptied
of any LSNs that have now become durable, and the durable point in the
binlog is updated and reading the binlog can continue.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2025-07-23 16:19:50 +02:00
..
trx0i_s.cc MDEV-24035 Failing assertion: UT_LIST_GET_LEN(lock.trx_locks) == 0 causing disruption and replication failure 2024-12-12 18:02:00 +02:00
trx0purge.cc Merge 10.11 into 11.4 2025-03-28 13:55:21 +02:00
trx0rec.cc MDEV-34703 LOAD DATA INFILE using Innodb bulk load aborts 2025-01-15 23:49:13 +05:30
trx0roll.cc Merge 10.6 into 10.11 2024-12-19 15:38:53 +02:00
trx0rseg.cc Merge branch '10.11' into 11.2 2024-08-21 07:58:46 +02:00
trx0sys.cc Merge 10.11 into 11.4 2025-01-09 07:58:08 +02:00
trx0trx.cc MDEV-34705: Binlog-in-engine: Crash-safe slave 2025-07-23 16:19:50 +02:00
trx0undo.cc Merge 10.11 into 11.4 2024-12-02 11:35:34 +02:00