mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 18:36:12 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			873 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			873 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| connection node_2;
 | |
| connection node_1;
 | |
| CREATE TABLE t1 (f1 INT NOT NULL PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
 | |
| CREATE TABLE t2 (f1 INT NOT NULL PRIMARY KEY AUTO_INCREMENT, f2 INT) ENGINE=InnoDB;
 | |
| CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 VALUES (NULL, NEW.f1);
 | |
| connection node_2;
 | |
| SET SESSION wsrep_sync_wait = 0;
 | |
| SET GLOBAL wsrep_slave_threads = 2;
 | |
| SET GLOBAL debug_dbug = 'd,sync.mdev_20225';
 | |
| DROP TRIGGER tr1;
 | |
| connection node_2;
 | |
| connection node_1;
 | |
| INSERT INTO t1 VALUES (NULL);
 | |
| connection node_2a;
 | |
| SET GLOBAL debug_dbug = 'RESET';
 | |
| SET DEBUG_SYNC = 'now SIGNAL signal.mdev_20225_continue';
 | |
| SET DEBUG_SYNC = 'RESET';
 | |
| SET GLOBAL wsrep_slave_threads = DEFAULT;
 | |
| connection node_2;
 | |
| SHOW TRIGGERS;
 | |
| Trigger	Event	Table	Statement	Timing	Created	sql_mode	Definer	character_set_client	collation_connection	Database Collation
 | |
| DROP TABLE t1;
 | |
| DROP TABLE t2;
 | 
