mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	better replicaiton test cleanup to ensure better test predictability + some ndb test cleanup client/mysqltest.c: increase save_master_pos timeout to 30 seconds for higher test predictability mysql-test/extra/rpl_tests/rpl_ddl.test: better replicaiton test cleanup to ensure better test predictability mysql-test/extra/rpl_tests/rpl_row_UUID.test: better replicaiton test cleanup to ensure better test predictability mysql-test/r/rpl_ndb_dd_advance.result: better replicaiton test cleanup to ensure better test predictability mysql-test/r/rpl_ndb_sync.result: better replicaiton test cleanup to ensure better test predictability mysql-test/t/disabled.def: better replicaiton test cleanup to ensure better test predictability mysql-test/t/rpl_ndb_bank.test: better replicaiton test cleanup to ensure better test predictability mysql-test/t/rpl_ndb_basic.test: better replicaiton test cleanup to ensure better test predictability mysql-test/t/rpl_ndb_dd_advance.test: better replicaiton test cleanup to ensure better test predictability mysql-test/t/rpl_ndb_dd_basic.test: better replicaiton test cleanup to ensure better test predictability mysql-test/t/rpl_ndb_sync.test: better replicaiton test cleanup to ensure better test predictability
		
			
				
	
	
		
			86 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --source include/have_ndb.inc
 | |
| --source include/have_binlog_format_row.inc
 | |
| --source include/master-slave.inc
 | |
| 
 | |
| --disable_warnings
 | |
| DROP TABLE IF EXISTS t1;
 | |
| --enable_warnings
 | |
| 
 | |
| #
 | |
| # Basic test of disk tables for NDB
 | |
| #
 | |
| 
 | |
| #
 | |
| # Start by creating a logfile group
 | |
| #
 | |
| 
 | |
| CREATE LOGFILE GROUP lg1
 | |
| ADD UNDOFILE 'undofile.dat'
 | |
| INITIAL_SIZE 16M
 | |
| UNDO_BUFFER_SIZE = 1M
 | |
| ENGINE=NDB;
 | |
| 
 | |
| alter logfile group lg1
 | |
| add undofile 'undofile02.dat'
 | |
| initial_size 4M engine=ndb;
 | |
| 
 | |
| #
 | |
| # Create a tablespace connected to the logfile group
 | |
| #
 | |
| 
 | |
| CREATE TABLESPACE ts1
 | |
| ADD DATAFILE 'datafile.dat'
 | |
| USE LOGFILE GROUP lg1
 | |
| INITIAL_SIZE 12M
 | |
| ENGINE NDB;
 | |
| 
 | |
| alter tablespace ts1
 | |
| add datafile 'datafile02.dat'
 | |
| initial_size 4M engine=ndb;
 | |
| 
 | |
| #
 | |
| # Create a table using this tablespace
 | |
| #
 | |
| 
 | |
| CREATE TABLE t1
 | |
| (pk1 int not null primary key, b int not null, c int not null)
 | |
| tablespace ts1 storage disk
 | |
| engine ndb;
 | |
| 
 | |
| #
 | |
| # insert some data
 | |
| #
 | |
| 
 | |
| insert into t1 values (1,2,3);
 | |
| select * from t1 order by pk1;
 | |
| 
 | |
| #
 | |
| # check that the data is also on the slave
 | |
| #
 | |
| 
 | |
| --sync_slave_with_master
 | |
| --connection slave
 | |
| select * from t1 order by pk1;
 | |
| 
 | |
| #
 | |
| # view the binlog
 | |
| #
 | |
| 
 | |
| --connection master
 | |
| -- source include/show_binlog_events.inc
 | |
| 
 | |
| #
 | |
| # cleanup
 | |
| #
 | |
| 
 | |
| drop table t1;
 | |
| alter tablespace ts1
 | |
| drop datafile 'datafile.dat'
 | |
| engine=ndb;
 | |
| alter tablespace ts1
 | |
| drop datafile 'datafile02.dat'
 | |
| engine=ndb;
 | |
| DROP TABLESPACE ts1 ENGINE=NDB;
 | |
| DROP LOGFILE GROUP lg1 ENGINE=NDB;
 | |
| -- source include/master-slave-end.inc
 |