mirror of
https://github.com/MariaDB/server.git
synced 2026-02-24 11:38:42 +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>
11 lines
573 B
Text
11 lines
573 B
Text
SET spider_same_server_link= on;
|
|
create server s foreign data wrapper mysql options (host "127.0.0.1", database "spider_db", user "root", port $MASTER_MYPORT);;
|
|
CREATE DATABASE spider_db;
|
|
CREATE TABLE spider_db.t (a INT) ENGINE=InnoDB;
|
|
CREATE TABLE t (a INT) ENGINE=SPIDER COMMENT = 'wrapper "mysql", srv "s", table "t"';
|
|
Warnings:
|
|
Warning 138 Spider table params in COMMENT or CONNECTION strings have been deprecated and will be removed in a future release. Please use table options instead.
|
|
INSERT INTO t VALUES (2);
|
|
DROP TABLE t;
|
|
DROP DATABASE spider_db;
|
|
DROP SERVER s;
|