mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
a80f46bfdf
Added two status variables: binlog_cache_use - counts number of transactions that used somehow transaction temporary binary log. binlog_cache_disk_use - counts number of transactions that required disk I/O for storing info in this this binary log.
34 lines
754 B
Text
34 lines
754 B
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
stop slave;
|
|
create table t1 (a int) engine=innodb;
|
|
reset slave;
|
|
start slave;
|
|
stop slave;
|
|
start slave;
|
|
select master_pos_wait('master-bin.001',3000)>=0;
|
|
master_pos_wait('master-bin.001',3000)>=0
|
|
1
|
|
select * from t1 where a=8000;
|
|
a
|
|
8000
|
|
show status like "binlog_cache_use";
|
|
Variable_name Value
|
|
Binlog_cache_use 1
|
|
show status like "binlog_cache_disk_use";
|
|
Variable_name Value
|
|
Binlog_cache_disk_use 1
|
|
begin;
|
|
delete from t1;
|
|
commit;
|
|
show status like "binlog_cache_use";
|
|
Variable_name Value
|
|
Binlog_cache_use 2
|
|
show status like "binlog_cache_disk_use";
|
|
Variable_name Value
|
|
Binlog_cache_disk_use 1
|
|
drop table t1;
|