2010-01-12 02:47:27 +01:00
set binlog_format=statement;
2010-04-28 14:47:49 +02:00
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
2010-01-12 02:47:27 +01:00
RESET MASTER;
2010-11-03 16:42:33 +01:00
select count(*) > 0 from performance_schema.setup_instruments;
2010-01-12 02:47:27 +01:00
count(*) > 0
1
2010-11-03 16:42:33 +01:00
update performance_schema.setup_instruments set enabled='NO'
2011-01-04 10:04:02 +01:00
where name like "wait/synch/rwlock/sql/%"
and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock");
2010-11-03 16:42:33 +01:00
select count(*) > 0 from performance_schema.events_waits_current;
2010-01-12 02:47:27 +01:00
count(*) > 0
1
drop table if exists test.t1;
drop table if exists test.t2;
create table test.t1 (thread_id integer);
create table test.t2 (name varchar(128));
insert into test.t1
2010-11-03 16:42:33 +01:00
select thread_id from performance_schema.events_waits_current;
2010-01-12 02:47:27 +01:00
Warnings:
2010-04-28 14:47:49 +02:00
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves.
2010-01-12 02:47:27 +01:00
insert into test.t2
2010-11-03 16:42:33 +01:00
select name from performance_schema.setup_instruments
2011-01-04 10:04:02 +01:00
where name like "wait/synch/rwlock/sql/%"
and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock");
2010-01-12 02:47:27 +01:00
Warnings:
2010-04-28 14:47:49 +02:00
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves.
2010-01-12 02:47:27 +01:00
drop table test.t1;
drop table test.t2;
2010-11-03 16:42:33 +01:00
update performance_schema.setup_instruments set enabled='YES'
2011-01-04 10:04:02 +01:00
where name like "wait/synch/rwlock/sql/%"
and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock");
2012-08-14 16:23:34 +02:00
include/show_binlog_events.inc
2010-01-12 02:47:27 +01:00
Log_name Pos Event_type Server_id End_log_pos Info
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # GTID #-#-#
2010-08-20 04:59:58 +02:00
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t1` /* generated by server */
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # GTID #-#-#
2010-08-20 04:59:58 +02:00
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t2` /* generated by server */
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # GTID #-#-#
2010-01-12 02:47:27 +01:00
master-bin.000001 # Query # # use `test`; create table test.t1 (thread_id integer)
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # GTID #-#-#
2010-01-12 02:47:27 +01:00
master-bin.000001 # Query # # use `test`; create table test.t2 (name varchar(128))
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
2010-01-12 02:47:27 +01:00
master-bin.000001 # Query # # use `test`; insert into test.t1
2010-11-03 16:42:33 +01:00
select thread_id from performance_schema.events_waits_current
2010-01-15 06:06:33 +01:00
master-bin.000001 # Query # # COMMIT
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
2010-01-12 02:47:27 +01:00
master-bin.000001 # Query # # use `test`; insert into test.t2
2010-11-03 16:42:33 +01:00
select name from performance_schema.setup_instruments
2011-01-04 10:04:02 +01:00
where name like "wait/synch/rwlock/sql/%"
and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock")
2010-01-15 06:06:33 +01:00
master-bin.000001 # Query # # COMMIT
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # GTID #-#-#
2010-08-20 04:59:58 +02:00
master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
2013-03-26 10:35:34 +01:00
master-bin.000001 # Gtid # # GTID #-#-#
2010-08-20 04:59:58 +02:00
master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */