connection node_2;
connection node_1;
CREATE TABLE parent (
id INT PRIMARY KEY,
KEY (id)
) ENGINE=InnoDB;
CREATE TABLE child (
id INT PRIMARY KEY,
parent_id INT DEFAULT NULL,
FOREIGN KEY (parent_id)
REFERENCES parent(id)
) ENGINE=InnoDB;
connection node_2; SET SESSION wsrep_sync_wait = 0; SET GLOBAL wsrep_slave_threads=2; SET GLOBAL DEBUG_DBUG = "d,sync.wsrep_apply_toi";
connection node_1;
ALTER TABLE parent ADD COLUMN (j INT);
connection node_2; SET DEBUG_SYNC = "now WAIT_FOR sync.wsrep_apply_toi_reached";
connection node_1;
INSERT INTO child(id) values (1);
connection node_2; SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_toi"; SET SESSION wsrep_sync_wait = DEFAULT; SET DEBUG_SYNC = "RESET"; SET GLOBAL DEBUG_DBUG = ''; SET GLOBAL wsrep_slave_threads = DEFAULT;
connection node_1;
DROP TABLE child;
DROP TABLE parent;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.