mirror of
https://github.com/MariaDB/server.git
synced 2026-03-10 10:28:40 +01:00
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>
42 lines
864 B
PHP
42 lines
864 B
PHP
#
|
|
# include/test_fieldsize.inc
|
|
#
|
|
# This include file is designed to create a table with one column
|
|
# whose size on the master is greater than that on the slave. The
|
|
# test should fail with an error on the slave.
|
|
#
|
|
|
|
connection master;
|
|
DROP TABLE IF EXISTS t1;
|
|
|
|
sync_slave_with_master;
|
|
STOP SLAVE;
|
|
--let $master_use_gtid_option= No
|
|
--source include/reset_slave.inc
|
|
eval $test_table_slave;
|
|
|
|
connection master;
|
|
eval $test_table_master;
|
|
--source include/kill_binlog_dump_threads.inc
|
|
RESET MASTER;
|
|
|
|
eval $test_insert;
|
|
|
|
connection slave;
|
|
START SLAVE;
|
|
--let $slave_sql_errno= 1677
|
|
--let $show_slave_sql_error= 1
|
|
--source include/wait_for_slave_sql_error.inc
|
|
|
|
# The following should be 0
|
|
SELECT COUNT(*) FROM t1;
|
|
STOP SLAVE;
|
|
--source include/reset_slave.inc
|
|
|
|
connection master;
|
|
--source include/kill_binlog_dump_threads.inc
|
|
RESET MASTER;
|
|
|
|
connection slave;
|
|
START SLAVE;
|
|
|