2007-12-09 18:35:51 +01:00
set global storage_engine=maria;
set session storage_engine=maria;
2007-12-13 11:26:55 +01:00
set global maria_log_file_size=4294967296;
2007-12-09 18:35:51 +01:00
drop table if exists t1,t2;
SET SQL_WARNINGS=1;
CREATE TABLE t1 (
STRING_DATA char(255) default NULL
);
CREATE TABLE t2 (
STRING_DATA char(255) default NULL
);
2007-12-13 11:26:55 +01:00
set global maria_log_file_size=16777216;
set global maria_checkpoint_interval=30;
2007-12-09 18:35:51 +01:00
INSERT INTO t1 VALUES ('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
INSERT INTO t1 VALUES ('DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD');
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
2007-12-13 11:26:55 +01:00
set global maria_checkpoint_interval=30;
2007-12-09 18:35:51 +01:00
SHOW ENGINE maria logs;
Type Name Status
2007-12-13 11:26:55 +01:00
maria master-data/maria_log.00000005 in use
2007-12-09 18:35:51 +01:00
set global maria_log_file_size=16777216;
select @@global.maria_log_file_size;
@@global.maria_log_file_size
16777216
2007-12-13 11:26:55 +01:00
set global maria_checkpoint_interval=30;
2007-12-09 18:35:51 +01:00
SHOW ENGINE maria logs;
Type Name Status
2007-12-13 11:26:55 +01:00
maria master-data/maria_log.00000005 in use
2007-12-09 18:35:51 +01:00
set global maria_log_file_size=8388608;
select @@global.maria_log_file_size;
@@global.maria_log_file_size
8388608
set global maria_log_purge_type=at_flush;
insert into t1 select * from t2;
2007-12-13 11:26:55 +01:00
set global maria_checkpoint_interval=30;
2007-12-09 18:35:51 +01:00
SHOW ENGINE maria logs;
Type Name Status
2007-12-13 11:26:55 +01:00
maria master-data/maria_log.00000005 free
maria master-data/maria_log.00000006 free
maria master-data/maria_log.00000007 free
maria master-data/maria_log.00000008 in use
2007-12-09 18:35:51 +01:00
flush logs;
SHOW ENGINE maria logs;
Type Name Status
2007-12-13 11:26:55 +01:00
maria master-data/maria_log.00000008 in use
2007-12-09 18:35:51 +01:00
set global maria_log_file_size=16777216;
set global maria_log_purge_type=external;
insert into t1 select * from t2;
2007-12-13 11:26:55 +01:00
set global maria_checkpoint_interval=30;
2007-12-09 18:35:51 +01:00
SHOW ENGINE maria logs;
Type Name Status
2007-12-13 11:26:55 +01:00
maria master-data/maria_log.00000008 free
maria master-data/maria_log.00000009 in use
2007-12-09 18:35:51 +01:00
flush logs;
SHOW ENGINE maria logs;
Type Name Status
2007-12-13 11:26:55 +01:00
maria master-data/maria_log.00000008 free
maria master-data/maria_log.00000009 in use
2007-12-09 18:35:51 +01:00
set global maria_log_purge_type=immediate;
insert into t1 select * from t2;
2007-12-13 11:26:55 +01:00
set global maria_checkpoint_interval=30;
2007-12-09 18:35:51 +01:00
SHOW ENGINE maria logs;
Type Name Status
2007-12-13 11:26:55 +01:00
maria master-data/maria_log.00000011 in use
2007-12-09 18:35:51 +01:00
drop table t1, t2;