diff --git a/mysql-test/suite/binlog/r/binlog_rotate_perf_innodb.result b/mysql-test/suite/binlog/r/binlog_rotate_perf_innodb.result
new file mode 100644
index 0000000..d7a4a78
--- /dev/null
+++ b/mysql-test/suite/binlog/r/binlog_rotate_perf_innodb.result
@@ -0,0 +1,2102 @@
+create database test_rotate_db;
+use test_rotate_db;
+#currrent engine=innodb
+show binary logs;
+Log_name	File_size
+master-bin.000001	343
+CREATE TABLE t1_innodb (c1 INT) ENGINE=innodb;
+insert into t1_innodb values(0),(1);
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	832			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+flush logs;
+# left times= 99
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000004	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000005	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000006	154			
+flush logs;
+# left times= 98
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000007	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000008	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000009	154			
+flush logs;
+# left times= 97
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000010	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000011	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000012	154			
+flush logs;
+# left times= 96
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000013	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000014	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000015	154			
+flush logs;
+# left times= 95
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000016	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000017	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000018	154			
+flush logs;
+# left times= 94
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000019	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000020	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000021	154			
+flush logs;
+# left times= 93
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000022	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000023	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000024	154			
+flush logs;
+# left times= 92
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000025	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000026	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000027	154			
+flush logs;
+# left times= 91
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000028	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000029	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000030	154			
+flush logs;
+# left times= 90
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000031	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000032	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000033	154			
+flush logs;
+# left times= 89
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000034	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000035	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000036	154			
+flush logs;
+# left times= 88
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000037	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000038	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000039	154			
+flush logs;
+# left times= 87
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000040	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000041	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000042	154			
+flush logs;
+# left times= 86
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000043	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000044	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000045	154			
+flush logs;
+# left times= 85
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000046	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000047	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000048	154			
+flush logs;
+# left times= 84
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000049	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000050	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000051	154			
+flush logs;
+# left times= 83
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000052	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000053	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000054	154			
+flush logs;
+# left times= 82
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000055	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000056	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000057	154			
+flush logs;
+# left times= 81
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000058	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000059	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000060	154			
+flush logs;
+# left times= 80
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000061	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000062	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000063	154			
+flush logs;
+# left times= 79
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000064	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000065	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000066	154			
+flush logs;
+# left times= 78
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000067	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000068	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000069	154			
+flush logs;
+# left times= 77
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000070	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000071	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000072	154			
+flush logs;
+# left times= 76
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000073	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000074	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000075	154			
+flush logs;
+# left times= 75
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000076	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000077	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000078	154			
+flush logs;
+# left times= 74
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000079	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000080	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000081	154			
+flush logs;
+# left times= 73
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000082	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000083	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000084	154			
+flush logs;
+# left times= 72
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000085	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000086	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000087	154			
+flush logs;
+# left times= 71
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000088	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000089	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000090	154			
+flush logs;
+# left times= 70
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000091	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000092	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000093	154			
+flush logs;
+# left times= 69
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000094	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000095	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000096	154			
+flush logs;
+# left times= 68
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000097	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000098	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000099	154			
+flush logs;
+# left times= 67
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000100	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000101	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000102	154			
+flush logs;
+# left times= 66
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000103	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000104	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000105	154			
+flush logs;
+# left times= 65
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000106	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000107	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000108	154			
+flush logs;
+# left times= 64
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000109	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000110	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000111	154			
+flush logs;
+# left times= 63
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000112	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000113	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000114	154			
+flush logs;
+# left times= 62
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000115	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000116	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000117	154			
+flush logs;
+# left times= 61
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000118	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000119	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000120	154			
+flush logs;
+# left times= 60
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000121	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000122	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000123	154			
+flush logs;
+# left times= 59
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000124	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000125	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000126	154			
+flush logs;
+# left times= 58
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000127	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000128	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000129	154			
+flush logs;
+# left times= 57
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000130	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000131	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000132	154			
+flush logs;
+# left times= 56
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000133	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000134	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000135	154			
+flush logs;
+# left times= 55
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000136	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000137	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000138	154			
+flush logs;
+# left times= 54
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000139	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000140	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000141	154			
+flush logs;
+# left times= 53
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000142	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000143	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000144	154			
+flush logs;
+# left times= 52
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000145	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000146	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000147	154			
+flush logs;
+# left times= 51
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000148	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000149	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000150	154			
+flush logs;
+# left times= 50
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000151	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000152	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000153	154			
+flush logs;
+# left times= 49
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000154	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000155	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000156	154			
+flush logs;
+# left times= 48
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000157	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000158	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000159	154			
+flush logs;
+# left times= 47
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000160	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000161	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000162	154			
+flush logs;
+# left times= 46
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000163	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000164	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000165	154			
+flush logs;
+# left times= 45
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000166	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000167	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000168	154			
+flush logs;
+# left times= 44
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000169	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000170	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000171	154			
+flush logs;
+# left times= 43
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000172	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000173	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000174	154			
+flush logs;
+# left times= 42
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000175	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000176	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000177	154			
+flush logs;
+# left times= 41
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000178	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000179	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000180	154			
+flush logs;
+# left times= 40
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000181	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000182	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000183	154			
+flush logs;
+# left times= 39
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000184	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000185	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000186	154			
+flush logs;
+# left times= 38
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000187	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000188	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000189	154			
+flush logs;
+# left times= 37
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000190	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000191	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000192	154			
+flush logs;
+# left times= 36
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000193	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000194	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000195	154			
+flush logs;
+# left times= 35
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000196	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000197	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000198	154			
+flush logs;
+# left times= 34
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000199	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000200	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000201	154			
+flush logs;
+# left times= 33
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000202	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000203	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000204	154			
+flush logs;
+# left times= 32
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000205	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000206	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000207	154			
+flush logs;
+# left times= 31
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000208	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000209	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000210	154			
+flush logs;
+# left times= 30
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000211	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000212	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000213	154			
+flush logs;
+# left times= 29
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000214	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000215	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000216	154			
+flush logs;
+# left times= 28
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000217	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000218	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000219	154			
+flush logs;
+# left times= 27
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000220	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000221	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000222	154			
+flush logs;
+# left times= 26
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000223	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000224	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000225	154			
+flush logs;
+# left times= 25
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000226	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000227	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000228	154			
+flush logs;
+# left times= 24
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000229	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000230	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000231	154			
+flush logs;
+# left times= 23
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000232	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000233	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000234	154			
+flush logs;
+# left times= 22
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000235	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000236	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000237	154			
+flush logs;
+# left times= 21
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000238	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000239	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000240	154			
+flush logs;
+# left times= 20
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000241	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000242	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000243	154			
+flush logs;
+# left times= 19
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000244	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000245	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000246	154			
+flush logs;
+# left times= 18
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000247	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000248	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000249	154			
+flush logs;
+# left times= 17
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000250	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000251	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000252	154			
+flush logs;
+# left times= 16
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000253	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000254	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000255	154			
+flush logs;
+# left times= 15
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000256	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000257	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000258	154			
+flush logs;
+# left times= 14
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000259	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000260	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000261	154			
+flush logs;
+# left times= 13
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000262	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000263	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000264	154			
+flush logs;
+# left times= 12
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000265	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000266	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000267	154			
+flush logs;
+# left times= 11
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000268	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000269	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000270	154			
+flush logs;
+# left times= 10
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000271	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000272	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000273	154			
+flush logs;
+# left times= 9
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000274	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000275	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000276	154			
+flush logs;
+# left times= 8
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000277	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000278	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000279	154			
+flush logs;
+# left times= 7
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000280	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000281	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000282	154			
+flush logs;
+# left times= 6
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000283	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000284	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000285	154			
+flush logs;
+# left times= 5
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000286	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000287	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000288	154			
+flush logs;
+# left times= 4
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000289	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000290	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000291	154			
+show binary logs;
+Log_name	File_size
+master-bin.000001	880
+master-bin.000002	202
+master-bin.000003	202
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	202
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	202
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	202
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	202
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	202
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	202
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	202
+master-bin.000025	202
+master-bin.000026	202
+master-bin.000027	202
+master-bin.000028	202
+master-bin.000029	202
+master-bin.000030	202
+master-bin.000031	202
+master-bin.000032	202
+master-bin.000033	202
+master-bin.000034	202
+master-bin.000035	202
+master-bin.000036	202
+master-bin.000037	202
+master-bin.000038	202
+master-bin.000039	202
+master-bin.000040	202
+master-bin.000041	202
+master-bin.000042	202
+master-bin.000043	202
+master-bin.000044	202
+master-bin.000045	202
+master-bin.000046	202
+master-bin.000047	202
+master-bin.000048	202
+master-bin.000049	202
+master-bin.000050	202
+master-bin.000051	202
+master-bin.000052	202
+master-bin.000053	202
+master-bin.000054	202
+master-bin.000055	202
+master-bin.000056	202
+master-bin.000057	202
+master-bin.000058	202
+master-bin.000059	202
+master-bin.000060	202
+master-bin.000061	202
+master-bin.000062	202
+master-bin.000063	202
+master-bin.000064	202
+master-bin.000065	202
+master-bin.000066	202
+master-bin.000067	202
+master-bin.000068	202
+master-bin.000069	202
+master-bin.000070	202
+master-bin.000071	202
+master-bin.000072	202
+master-bin.000073	202
+master-bin.000074	202
+master-bin.000075	202
+master-bin.000076	202
+master-bin.000077	202
+master-bin.000078	202
+master-bin.000079	202
+master-bin.000080	202
+master-bin.000081	202
+master-bin.000082	202
+master-bin.000083	202
+master-bin.000084	202
+master-bin.000085	202
+master-bin.000086	202
+master-bin.000087	202
+master-bin.000088	202
+master-bin.000089	202
+master-bin.000090	202
+master-bin.000091	202
+master-bin.000092	202
+master-bin.000093	202
+master-bin.000094	202
+master-bin.000095	202
+master-bin.000096	202
+master-bin.000097	202
+master-bin.000098	202
+master-bin.000099	202
+master-bin.000100	202
+master-bin.000101	202
+master-bin.000102	202
+master-bin.000103	202
+master-bin.000104	202
+master-bin.000105	202
+master-bin.000106	202
+master-bin.000107	202
+master-bin.000108	202
+master-bin.000109	202
+master-bin.000110	202
+master-bin.000111	202
+master-bin.000112	202
+master-bin.000113	202
+master-bin.000114	202
+master-bin.000115	202
+master-bin.000116	202
+master-bin.000117	202
+master-bin.000118	202
+master-bin.000119	202
+master-bin.000120	202
+master-bin.000121	202
+master-bin.000122	202
+master-bin.000123	202
+master-bin.000124	202
+master-bin.000125	202
+master-bin.000126	202
+master-bin.000127	202
+master-bin.000128	202
+master-bin.000129	202
+master-bin.000130	202
+master-bin.000131	202
+master-bin.000132	202
+master-bin.000133	202
+master-bin.000134	202
+master-bin.000135	202
+master-bin.000136	202
+master-bin.000137	202
+master-bin.000138	202
+master-bin.000139	202
+master-bin.000140	202
+master-bin.000141	202
+master-bin.000142	202
+master-bin.000143	202
+master-bin.000144	202
+master-bin.000145	202
+master-bin.000146	202
+master-bin.000147	202
+master-bin.000148	202
+master-bin.000149	202
+master-bin.000150	202
+master-bin.000151	202
+master-bin.000152	202
+master-bin.000153	202
+master-bin.000154	202
+master-bin.000155	202
+master-bin.000156	202
+master-bin.000157	202
+master-bin.000158	202
+master-bin.000159	202
+master-bin.000160	202
+master-bin.000161	202
+master-bin.000162	202
+master-bin.000163	202
+master-bin.000164	202
+master-bin.000165	202
+master-bin.000166	202
+master-bin.000167	202
+master-bin.000168	202
+master-bin.000169	202
+master-bin.000170	202
+master-bin.000171	202
+master-bin.000172	202
+master-bin.000173	202
+master-bin.000174	202
+master-bin.000175	202
+master-bin.000176	202
+master-bin.000177	202
+master-bin.000178	202
+master-bin.000179	202
+master-bin.000180	202
+master-bin.000181	202
+master-bin.000182	202
+master-bin.000183	202
+master-bin.000184	202
+master-bin.000185	202
+master-bin.000186	202
+master-bin.000187	202
+master-bin.000188	202
+master-bin.000189	202
+master-bin.000190	202
+master-bin.000191	202
+master-bin.000192	202
+master-bin.000193	202
+master-bin.000194	202
+master-bin.000195	202
+master-bin.000196	202
+master-bin.000197	202
+master-bin.000198	202
+master-bin.000199	202
+master-bin.000200	202
+master-bin.000201	202
+master-bin.000202	202
+master-bin.000203	202
+master-bin.000204	202
+master-bin.000205	202
+master-bin.000206	202
+master-bin.000207	202
+master-bin.000208	202
+master-bin.000209	202
+master-bin.000210	202
+master-bin.000211	202
+master-bin.000212	202
+master-bin.000213	202
+master-bin.000214	202
+master-bin.000215	202
+master-bin.000216	202
+master-bin.000217	202
+master-bin.000218	202
+master-bin.000219	202
+master-bin.000220	202
+master-bin.000221	202
+master-bin.000222	202
+master-bin.000223	202
+master-bin.000224	202
+master-bin.000225	202
+master-bin.000226	202
+master-bin.000227	202
+master-bin.000228	202
+master-bin.000229	202
+master-bin.000230	202
+master-bin.000231	202
+master-bin.000232	202
+master-bin.000233	202
+master-bin.000234	202
+master-bin.000235	202
+master-bin.000236	202
+master-bin.000237	202
+master-bin.000238	202
+master-bin.000239	202
+master-bin.000240	202
+master-bin.000241	202
+master-bin.000242	202
+master-bin.000243	202
+master-bin.000244	202
+master-bin.000245	202
+master-bin.000246	202
+master-bin.000247	202
+master-bin.000248	202
+master-bin.000249	202
+master-bin.000250	202
+master-bin.000251	202
+master-bin.000252	202
+master-bin.000253	202
+master-bin.000254	202
+master-bin.000255	202
+master-bin.000256	202
+master-bin.000257	202
+master-bin.000258	202
+master-bin.000259	202
+master-bin.000260	202
+master-bin.000261	202
+master-bin.000262	202
+master-bin.000263	202
+master-bin.000264	202
+master-bin.000265	202
+master-bin.000266	202
+master-bin.000267	202
+master-bin.000268	202
+master-bin.000269	202
+master-bin.000270	202
+master-bin.000271	202
+master-bin.000272	202
+master-bin.000273	202
+master-bin.000274	202
+master-bin.000275	202
+master-bin.000276	202
+master-bin.000277	202
+master-bin.000278	202
+master-bin.000279	202
+master-bin.000280	202
+master-bin.000281	202
+master-bin.000282	202
+master-bin.000283	202
+master-bin.000284	202
+master-bin.000285	202
+master-bin.000286	202
+master-bin.000287	202
+master-bin.000288	202
+master-bin.000289	202
+master-bin.000290	202
+master-bin.000291	154
+reset master;
+# left times= 3
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+reset master;
+# left times= 2
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+reset master;
+# left times= 1
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+reset master;
+# left times= 0
+# [engine=innodb] after first loop_times=0, show master logs results
+show master logs;
+Log_name	File_size
+master-bin.000001	154
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	154
+#begin to restart mysqld current loop_times=10
+# restart
+# left restart times= 9
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000004	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000005	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	154
+#begin to restart mysqld current loop_times=9
+# restart
+# left restart times= 8
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000007	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000008	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	154
+#begin to restart mysqld current loop_times=8
+# restart
+# left restart times= 7
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000010	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000011	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	154
+#begin to restart mysqld current loop_times=7
+# restart
+# left restart times= 6
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000013	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000014	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	154
+#begin to restart mysqld current loop_times=6
+# restart
+# left restart times= 5
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000016	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000017	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	154
+#begin to restart mysqld current loop_times=5
+# restart
+# left restart times= 4
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000019	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000020	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	154
+#begin to restart mysqld current loop_times=4
+# restart
+# left restart times= 3
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000022	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000023	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	177
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	154
+#begin to restart mysqld current loop_times=3
+# restart
+# left restart times= 2
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000025	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000026	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	177
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	177
+master-bin.000025	202
+master-bin.000026	202
+master-bin.000027	154
+#begin to restart mysqld current loop_times=2
+# restart
+# left restart times= 1
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000028	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000029	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	177
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	177
+master-bin.000025	202
+master-bin.000026	202
+master-bin.000027	177
+master-bin.000028	202
+master-bin.000029	202
+master-bin.000030	154
+#begin to restart mysqld current loop_times=1
+# restart
+# left restart times= 0
+# [engine=innodb] after second loop_times=0, show master logs results
+# ====================================now try to change the log-bin config for mysqld========================
+#begin to restart mysqld
+# restart: --log-bin=new_log_bin
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+flush logs;
+# left times= 9
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000005	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000006	154			
+flush logs;
+# left times= 8
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000008	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000009	154			
+flush logs;
+# left times= 7
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000011	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000012	154			
+flush logs;
+# left times= 6
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	203
+new_log_bin.000011	203
+new_log_bin.000012	203
+new_log_bin.000013	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000014	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000015	154			
+flush logs;
+# left times= 5
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	203
+new_log_bin.000011	203
+new_log_bin.000012	203
+new_log_bin.000013	203
+new_log_bin.000014	203
+new_log_bin.000015	203
+new_log_bin.000016	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000017	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000018	154			
+flush logs;
+# left times= 4
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	203
+new_log_bin.000011	203
+new_log_bin.000012	203
+new_log_bin.000013	203
+new_log_bin.000014	203
+new_log_bin.000015	203
+new_log_bin.000016	203
+new_log_bin.000017	203
+new_log_bin.000018	203
+new_log_bin.000019	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000020	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000021	154			
+reset master;
+# left times= 3
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+reset master;
+# left times= 2
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+reset master;
+# left times= 1
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+reset master;
+# left times= 0
+# [engine=innodb] after third loop_times=0, show master logs results
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+drop database test_rotate_db;
diff --git a/mysql-test/suite/binlog/r/binlog_rotate_perf_myisam.result b/mysql-test/suite/binlog/r/binlog_rotate_perf_myisam.result
new file mode 100644
index 0000000..51b1e84
--- /dev/null
+++ b/mysql-test/suite/binlog/r/binlog_rotate_perf_myisam.result
@@ -0,0 +1,2102 @@
+create database test_rotate_db;
+use test_rotate_db;
+#currrent engine=myisam
+show binary logs;
+Log_name	File_size
+master-bin.000001	343
+CREATE TABLE t1_myisam (c1 INT) ENGINE=myisam;
+insert into t1_myisam values(0),(1);
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	884			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+flush logs;
+# left times= 99
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000004	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000005	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000006	154			
+flush logs;
+# left times= 98
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000007	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000008	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000009	154			
+flush logs;
+# left times= 97
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000010	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000011	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000012	154			
+flush logs;
+# left times= 96
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000013	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000014	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000015	154			
+flush logs;
+# left times= 95
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000016	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000017	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000018	154			
+flush logs;
+# left times= 94
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000019	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000020	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000021	154			
+flush logs;
+# left times= 93
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000022	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000023	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000024	154			
+flush logs;
+# left times= 92
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000025	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000026	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000027	154			
+flush logs;
+# left times= 91
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000028	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000029	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000030	154			
+flush logs;
+# left times= 90
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000031	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000032	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000033	154			
+flush logs;
+# left times= 89
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000034	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000035	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000036	154			
+flush logs;
+# left times= 88
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000037	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000038	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000039	154			
+flush logs;
+# left times= 87
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000040	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000041	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000042	154			
+flush logs;
+# left times= 86
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000043	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000044	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000045	154			
+flush logs;
+# left times= 85
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000046	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000047	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000048	154			
+flush logs;
+# left times= 84
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000049	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000050	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000051	154			
+flush logs;
+# left times= 83
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000052	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000053	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000054	154			
+flush logs;
+# left times= 82
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000055	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000056	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000057	154			
+flush logs;
+# left times= 81
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000058	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000059	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000060	154			
+flush logs;
+# left times= 80
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000061	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000062	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000063	154			
+flush logs;
+# left times= 79
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000064	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000065	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000066	154			
+flush logs;
+# left times= 78
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000067	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000068	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000069	154			
+flush logs;
+# left times= 77
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000070	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000071	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000072	154			
+flush logs;
+# left times= 76
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000073	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000074	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000075	154			
+flush logs;
+# left times= 75
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000076	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000077	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000078	154			
+flush logs;
+# left times= 74
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000079	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000080	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000081	154			
+flush logs;
+# left times= 73
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000082	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000083	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000084	154			
+flush logs;
+# left times= 72
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000085	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000086	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000087	154			
+flush logs;
+# left times= 71
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000088	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000089	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000090	154			
+flush logs;
+# left times= 70
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000091	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000092	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000093	154			
+flush logs;
+# left times= 69
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000094	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000095	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000096	154			
+flush logs;
+# left times= 68
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000097	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000098	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000099	154			
+flush logs;
+# left times= 67
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000100	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000101	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000102	154			
+flush logs;
+# left times= 66
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000103	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000104	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000105	154			
+flush logs;
+# left times= 65
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000106	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000107	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000108	154			
+flush logs;
+# left times= 64
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000109	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000110	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000111	154			
+flush logs;
+# left times= 63
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000112	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000113	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000114	154			
+flush logs;
+# left times= 62
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000115	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000116	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000117	154			
+flush logs;
+# left times= 61
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000118	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000119	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000120	154			
+flush logs;
+# left times= 60
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000121	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000122	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000123	154			
+flush logs;
+# left times= 59
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000124	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000125	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000126	154			
+flush logs;
+# left times= 58
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000127	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000128	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000129	154			
+flush logs;
+# left times= 57
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000130	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000131	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000132	154			
+flush logs;
+# left times= 56
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000133	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000134	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000135	154			
+flush logs;
+# left times= 55
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000136	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000137	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000138	154			
+flush logs;
+# left times= 54
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000139	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000140	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000141	154			
+flush logs;
+# left times= 53
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000142	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000143	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000144	154			
+flush logs;
+# left times= 52
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000145	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000146	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000147	154			
+flush logs;
+# left times= 51
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000148	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000149	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000150	154			
+flush logs;
+# left times= 50
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000151	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000152	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000153	154			
+flush logs;
+# left times= 49
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000154	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000155	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000156	154			
+flush logs;
+# left times= 48
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000157	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000158	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000159	154			
+flush logs;
+# left times= 47
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000160	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000161	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000162	154			
+flush logs;
+# left times= 46
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000163	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000164	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000165	154			
+flush logs;
+# left times= 45
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000166	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000167	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000168	154			
+flush logs;
+# left times= 44
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000169	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000170	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000171	154			
+flush logs;
+# left times= 43
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000172	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000173	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000174	154			
+flush logs;
+# left times= 42
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000175	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000176	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000177	154			
+flush logs;
+# left times= 41
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000178	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000179	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000180	154			
+flush logs;
+# left times= 40
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000181	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000182	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000183	154			
+flush logs;
+# left times= 39
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000184	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000185	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000186	154			
+flush logs;
+# left times= 38
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000187	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000188	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000189	154			
+flush logs;
+# left times= 37
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000190	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000191	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000192	154			
+flush logs;
+# left times= 36
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000193	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000194	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000195	154			
+flush logs;
+# left times= 35
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000196	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000197	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000198	154			
+flush logs;
+# left times= 34
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000199	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000200	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000201	154			
+flush logs;
+# left times= 33
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000202	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000203	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000204	154			
+flush logs;
+# left times= 32
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000205	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000206	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000207	154			
+flush logs;
+# left times= 31
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000208	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000209	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000210	154			
+flush logs;
+# left times= 30
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000211	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000212	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000213	154			
+flush logs;
+# left times= 29
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000214	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000215	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000216	154			
+flush logs;
+# left times= 28
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000217	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000218	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000219	154			
+flush logs;
+# left times= 27
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000220	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000221	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000222	154			
+flush logs;
+# left times= 26
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000223	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000224	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000225	154			
+flush logs;
+# left times= 25
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000226	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000227	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000228	154			
+flush logs;
+# left times= 24
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000229	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000230	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000231	154			
+flush logs;
+# left times= 23
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000232	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000233	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000234	154			
+flush logs;
+# left times= 22
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000235	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000236	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000237	154			
+flush logs;
+# left times= 21
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000238	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000239	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000240	154			
+flush logs;
+# left times= 20
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000241	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000242	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000243	154			
+flush logs;
+# left times= 19
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000244	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000245	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000246	154			
+flush logs;
+# left times= 18
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000247	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000248	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000249	154			
+flush logs;
+# left times= 17
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000250	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000251	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000252	154			
+flush logs;
+# left times= 16
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000253	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000254	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000255	154			
+flush logs;
+# left times= 15
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000256	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000257	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000258	154			
+flush logs;
+# left times= 14
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000259	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000260	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000261	154			
+flush logs;
+# left times= 13
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000262	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000263	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000264	154			
+flush logs;
+# left times= 12
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000265	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000266	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000267	154			
+flush logs;
+# left times= 11
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000268	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000269	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000270	154			
+flush logs;
+# left times= 10
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000271	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000272	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000273	154			
+flush logs;
+# left times= 9
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000274	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000275	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000276	154			
+flush logs;
+# left times= 8
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000277	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000278	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000279	154			
+flush logs;
+# left times= 7
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000280	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000281	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000282	154			
+flush logs;
+# left times= 6
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000283	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000284	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000285	154			
+flush logs;
+# left times= 5
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000286	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000287	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000288	154			
+flush logs;
+# left times= 4
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000289	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000290	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000291	154			
+show binary logs;
+Log_name	File_size
+master-bin.000001	932
+master-bin.000002	202
+master-bin.000003	202
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	202
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	202
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	202
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	202
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	202
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	202
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	202
+master-bin.000025	202
+master-bin.000026	202
+master-bin.000027	202
+master-bin.000028	202
+master-bin.000029	202
+master-bin.000030	202
+master-bin.000031	202
+master-bin.000032	202
+master-bin.000033	202
+master-bin.000034	202
+master-bin.000035	202
+master-bin.000036	202
+master-bin.000037	202
+master-bin.000038	202
+master-bin.000039	202
+master-bin.000040	202
+master-bin.000041	202
+master-bin.000042	202
+master-bin.000043	202
+master-bin.000044	202
+master-bin.000045	202
+master-bin.000046	202
+master-bin.000047	202
+master-bin.000048	202
+master-bin.000049	202
+master-bin.000050	202
+master-bin.000051	202
+master-bin.000052	202
+master-bin.000053	202
+master-bin.000054	202
+master-bin.000055	202
+master-bin.000056	202
+master-bin.000057	202
+master-bin.000058	202
+master-bin.000059	202
+master-bin.000060	202
+master-bin.000061	202
+master-bin.000062	202
+master-bin.000063	202
+master-bin.000064	202
+master-bin.000065	202
+master-bin.000066	202
+master-bin.000067	202
+master-bin.000068	202
+master-bin.000069	202
+master-bin.000070	202
+master-bin.000071	202
+master-bin.000072	202
+master-bin.000073	202
+master-bin.000074	202
+master-bin.000075	202
+master-bin.000076	202
+master-bin.000077	202
+master-bin.000078	202
+master-bin.000079	202
+master-bin.000080	202
+master-bin.000081	202
+master-bin.000082	202
+master-bin.000083	202
+master-bin.000084	202
+master-bin.000085	202
+master-bin.000086	202
+master-bin.000087	202
+master-bin.000088	202
+master-bin.000089	202
+master-bin.000090	202
+master-bin.000091	202
+master-bin.000092	202
+master-bin.000093	202
+master-bin.000094	202
+master-bin.000095	202
+master-bin.000096	202
+master-bin.000097	202
+master-bin.000098	202
+master-bin.000099	202
+master-bin.000100	202
+master-bin.000101	202
+master-bin.000102	202
+master-bin.000103	202
+master-bin.000104	202
+master-bin.000105	202
+master-bin.000106	202
+master-bin.000107	202
+master-bin.000108	202
+master-bin.000109	202
+master-bin.000110	202
+master-bin.000111	202
+master-bin.000112	202
+master-bin.000113	202
+master-bin.000114	202
+master-bin.000115	202
+master-bin.000116	202
+master-bin.000117	202
+master-bin.000118	202
+master-bin.000119	202
+master-bin.000120	202
+master-bin.000121	202
+master-bin.000122	202
+master-bin.000123	202
+master-bin.000124	202
+master-bin.000125	202
+master-bin.000126	202
+master-bin.000127	202
+master-bin.000128	202
+master-bin.000129	202
+master-bin.000130	202
+master-bin.000131	202
+master-bin.000132	202
+master-bin.000133	202
+master-bin.000134	202
+master-bin.000135	202
+master-bin.000136	202
+master-bin.000137	202
+master-bin.000138	202
+master-bin.000139	202
+master-bin.000140	202
+master-bin.000141	202
+master-bin.000142	202
+master-bin.000143	202
+master-bin.000144	202
+master-bin.000145	202
+master-bin.000146	202
+master-bin.000147	202
+master-bin.000148	202
+master-bin.000149	202
+master-bin.000150	202
+master-bin.000151	202
+master-bin.000152	202
+master-bin.000153	202
+master-bin.000154	202
+master-bin.000155	202
+master-bin.000156	202
+master-bin.000157	202
+master-bin.000158	202
+master-bin.000159	202
+master-bin.000160	202
+master-bin.000161	202
+master-bin.000162	202
+master-bin.000163	202
+master-bin.000164	202
+master-bin.000165	202
+master-bin.000166	202
+master-bin.000167	202
+master-bin.000168	202
+master-bin.000169	202
+master-bin.000170	202
+master-bin.000171	202
+master-bin.000172	202
+master-bin.000173	202
+master-bin.000174	202
+master-bin.000175	202
+master-bin.000176	202
+master-bin.000177	202
+master-bin.000178	202
+master-bin.000179	202
+master-bin.000180	202
+master-bin.000181	202
+master-bin.000182	202
+master-bin.000183	202
+master-bin.000184	202
+master-bin.000185	202
+master-bin.000186	202
+master-bin.000187	202
+master-bin.000188	202
+master-bin.000189	202
+master-bin.000190	202
+master-bin.000191	202
+master-bin.000192	202
+master-bin.000193	202
+master-bin.000194	202
+master-bin.000195	202
+master-bin.000196	202
+master-bin.000197	202
+master-bin.000198	202
+master-bin.000199	202
+master-bin.000200	202
+master-bin.000201	202
+master-bin.000202	202
+master-bin.000203	202
+master-bin.000204	202
+master-bin.000205	202
+master-bin.000206	202
+master-bin.000207	202
+master-bin.000208	202
+master-bin.000209	202
+master-bin.000210	202
+master-bin.000211	202
+master-bin.000212	202
+master-bin.000213	202
+master-bin.000214	202
+master-bin.000215	202
+master-bin.000216	202
+master-bin.000217	202
+master-bin.000218	202
+master-bin.000219	202
+master-bin.000220	202
+master-bin.000221	202
+master-bin.000222	202
+master-bin.000223	202
+master-bin.000224	202
+master-bin.000225	202
+master-bin.000226	202
+master-bin.000227	202
+master-bin.000228	202
+master-bin.000229	202
+master-bin.000230	202
+master-bin.000231	202
+master-bin.000232	202
+master-bin.000233	202
+master-bin.000234	202
+master-bin.000235	202
+master-bin.000236	202
+master-bin.000237	202
+master-bin.000238	202
+master-bin.000239	202
+master-bin.000240	202
+master-bin.000241	202
+master-bin.000242	202
+master-bin.000243	202
+master-bin.000244	202
+master-bin.000245	202
+master-bin.000246	202
+master-bin.000247	202
+master-bin.000248	202
+master-bin.000249	202
+master-bin.000250	202
+master-bin.000251	202
+master-bin.000252	202
+master-bin.000253	202
+master-bin.000254	202
+master-bin.000255	202
+master-bin.000256	202
+master-bin.000257	202
+master-bin.000258	202
+master-bin.000259	202
+master-bin.000260	202
+master-bin.000261	202
+master-bin.000262	202
+master-bin.000263	202
+master-bin.000264	202
+master-bin.000265	202
+master-bin.000266	202
+master-bin.000267	202
+master-bin.000268	202
+master-bin.000269	202
+master-bin.000270	202
+master-bin.000271	202
+master-bin.000272	202
+master-bin.000273	202
+master-bin.000274	202
+master-bin.000275	202
+master-bin.000276	202
+master-bin.000277	202
+master-bin.000278	202
+master-bin.000279	202
+master-bin.000280	202
+master-bin.000281	202
+master-bin.000282	202
+master-bin.000283	202
+master-bin.000284	202
+master-bin.000285	202
+master-bin.000286	202
+master-bin.000287	202
+master-bin.000288	202
+master-bin.000289	202
+master-bin.000290	202
+master-bin.000291	154
+reset master;
+# left times= 3
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+reset master;
+# left times= 2
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+reset master;
+# left times= 1
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000003	154			
+reset master;
+# left times= 0
+# [engine=myisam] after first loop_times=0, show master logs results
+show master logs;
+Log_name	File_size
+master-bin.000001	154
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000001	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000002	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	154
+#begin to restart mysqld current loop_times=10
+# restart
+# left restart times= 9
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000004	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000005	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	154
+#begin to restart mysqld current loop_times=9
+# restart
+# left restart times= 8
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000007	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000008	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	154
+#begin to restart mysqld current loop_times=8
+# restart
+# left restart times= 7
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000010	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000011	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	154
+#begin to restart mysqld current loop_times=7
+# restart
+# left restart times= 6
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000013	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000014	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	154
+#begin to restart mysqld current loop_times=6
+# restart
+# left restart times= 5
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000016	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000017	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	154
+#begin to restart mysqld current loop_times=5
+# restart
+# left restart times= 4
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000019	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000020	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	154
+#begin to restart mysqld current loop_times=4
+# restart
+# left restart times= 3
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000022	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000023	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	177
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	154
+#begin to restart mysqld current loop_times=3
+# restart
+# left restart times= 2
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000025	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000026	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	177
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	177
+master-bin.000025	202
+master-bin.000026	202
+master-bin.000027	154
+#begin to restart mysqld current loop_times=2
+# restart
+# left restart times= 1
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000028	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+master-bin.000029	154			
+flush logs;
+show master logs;
+Log_name	File_size
+master-bin.000001	202
+master-bin.000002	202
+master-bin.000003	177
+master-bin.000004	202
+master-bin.000005	202
+master-bin.000006	177
+master-bin.000007	202
+master-bin.000008	202
+master-bin.000009	177
+master-bin.000010	202
+master-bin.000011	202
+master-bin.000012	177
+master-bin.000013	202
+master-bin.000014	202
+master-bin.000015	177
+master-bin.000016	202
+master-bin.000017	202
+master-bin.000018	177
+master-bin.000019	202
+master-bin.000020	202
+master-bin.000021	177
+master-bin.000022	202
+master-bin.000023	202
+master-bin.000024	177
+master-bin.000025	202
+master-bin.000026	202
+master-bin.000027	177
+master-bin.000028	202
+master-bin.000029	202
+master-bin.000030	154
+#begin to restart mysqld current loop_times=1
+# restart
+# left restart times= 0
+# [engine=myisam] after second loop_times=0, show master logs results
+# ====================================now try to change the log-bin config for mysqld========================
+#begin to restart mysqld
+# restart: --log-bin=new_log_bin
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+flush logs;
+# left times= 9
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000005	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000006	154			
+flush logs;
+# left times= 8
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000008	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000009	154			
+flush logs;
+# left times= 7
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000011	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000012	154			
+flush logs;
+# left times= 6
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	203
+new_log_bin.000011	203
+new_log_bin.000012	203
+new_log_bin.000013	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000014	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000015	154			
+flush logs;
+# left times= 5
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	203
+new_log_bin.000011	203
+new_log_bin.000012	203
+new_log_bin.000013	203
+new_log_bin.000014	203
+new_log_bin.000015	203
+new_log_bin.000016	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000017	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000018	154			
+flush logs;
+# left times= 4
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	203
+new_log_bin.000002	203
+new_log_bin.000003	203
+new_log_bin.000004	203
+new_log_bin.000005	203
+new_log_bin.000006	203
+new_log_bin.000007	203
+new_log_bin.000008	203
+new_log_bin.000009	203
+new_log_bin.000010	203
+new_log_bin.000011	203
+new_log_bin.000012	203
+new_log_bin.000013	203
+new_log_bin.000014	203
+new_log_bin.000015	203
+new_log_bin.000016	203
+new_log_bin.000017	203
+new_log_bin.000018	203
+new_log_bin.000019	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000020	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000021	154			
+reset master;
+# left times= 3
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+reset master;
+# left times= 2
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+reset master;
+# left times= 1
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000002	154			
+flush logs;
+show master status;
+File	Position	Binlog_Do_DB	Binlog_Ignore_DB	Executed_Gtid_Set
+new_log_bin.000003	154			
+reset master;
+# left times= 0
+# [engine=myisam] after third loop_times=0, show master logs results
+show binary logs;
+Log_name	File_size
+new_log_bin.000001	154
+drop database test_rotate_db;
diff --git a/mysql-test/suite/binlog/t/binlog_rotate_perf_innodb.test b/mysql-test/suite/binlog/t/binlog_rotate_perf_innodb.test
new file mode 100644
index 0000000..30a5f5d
--- /dev/null
+++ b/mysql-test/suite/binlog/t/binlog_rotate_perf_innodb.test
@@ -0,0 +1,100 @@
+# ==== Purpose ====
+#
+# functional test for open_binlog call using when
+# 
+# flush log reset master/slave called
+#
+# ==== Related ====
+#
+# TXSQL feature 67 binlog rotate perf optimization
+
+-- source include/have_binlog_format_row.inc
+
+--connect(conn1,localhost,root,,test)
+
+##
+let $engine= innodb;
+create database test_rotate_db;
+use test_rotate_db;
+--echo #currrent engine=$engine
+# Create a new table
+show binary logs;
+--eval CREATE TABLE t1_$engine (c1 INT) ENGINE=$engine
+--eval insert into t1_$engine values(0),(1)
+
+# do batch flush and show
+let $loop_times= 100;
+while ($loop_times) {
+  show master status;
+  flush logs;
+  show master status;
+  flush logs;
+  show master status;
+  if ($loop_times < 5)
+  {
+    if ($loop_times == 4) {
+      show binary logs;
+    }
+    reset master;
+  }
+  if ($loop_times >= 5) 
+  {
+    flush logs;
+  }
+
+  #
+  dec $loop_times;
+  --echo # left times= $loop_times
+}
+--echo # [engine=$engine] after first loop_times=$loop_times, show master logs results
+show master logs;
+
+# do batch flush and show with restart mysql
+let $loop_times= 10;
+while ($loop_times) {
+  show master status;
+  flush logs;
+  show master status;
+  flush logs;
+  show master logs;
+  --echo #begin to restart mysqld current loop_times=$loop_times
+  --source include/restart_mysqld.inc
+  #
+  dec $loop_times;
+  --echo # left restart times= $loop_times
+}
+--echo # [engine=$engine] after second loop_times=$loop_times, show master logs results
+
+
+# try to change the log-bin configs and restart
+--echo # ====================================now try to change the log-bin config for mysqld========================
+--let $restart_parameters= "restart: --log-bin=new_log_bin"
+--echo #begin to restart mysqld
+--source include/restart_mysqld.inc
+--let $restart_parameters= ""
+
+let $loop_times= 10;
+while ($loop_times) {
+  show binary logs;
+  flush logs;
+  show master status;
+  flush logs;
+  show master status;
+  if ($loop_times < 5)
+  {
+    reset master;
+  }
+  if ($loop_times >= 5) 
+  {
+    flush logs;
+  }
+
+  #
+  dec $loop_times;
+  --echo # left times= $loop_times
+}
+--echo # [engine=$engine] after third loop_times=$loop_times, show master logs results
+show binary logs;
+
+##cleanup
+drop database test_rotate_db;
diff --git a/mysql-test/suite/binlog/t/binlog_rotate_perf_myisam.test b/mysql-test/suite/binlog/t/binlog_rotate_perf_myisam.test
new file mode 100644
index 0000000..c77a6a9
--- /dev/null
+++ b/mysql-test/suite/binlog/t/binlog_rotate_perf_myisam.test
@@ -0,0 +1,100 @@
+# ==== Purpose ====
+#
+# functional test for open_binlog call using when
+# 
+# flush log reset master/slave called
+#
+# ==== Related ====
+#
+# TXSQL feature 67 binlog rotate perf optimization
+
+-- source include/have_binlog_format_row.inc
+
+--connect(conn1,localhost,root,,test)
+
+##
+let $engine= myisam;
+create database test_rotate_db;
+use test_rotate_db;
+--echo #currrent engine=$engine
+# Create a new table
+show binary logs;
+--eval CREATE TABLE t1_$engine (c1 INT) ENGINE=$engine
+--eval insert into t1_$engine values(0),(1)
+
+# do batch flush and show
+let $loop_times= 100;
+while ($loop_times) {
+  show master status;
+  flush logs;
+  show master status;
+  flush logs;
+  show master status;
+  if ($loop_times < 5)
+  {
+    if ($loop_times == 4) {
+      show binary logs;
+    }
+    reset master;
+  }
+  if ($loop_times >= 5) 
+  {
+    flush logs;
+  }
+
+  #
+  dec $loop_times;
+  --echo # left times= $loop_times
+}
+--echo # [engine=$engine] after first loop_times=$loop_times, show master logs results
+show master logs;
+
+# do batch flush and show with restart mysql
+let $loop_times= 10;
+while ($loop_times) {
+  show master status;
+  flush logs;
+  show master status;
+  flush logs;
+  show master logs;
+  --echo #begin to restart mysqld current loop_times=$loop_times
+  --source include/restart_mysqld.inc
+  #
+  dec $loop_times;
+  --echo # left restart times= $loop_times
+}
+--echo # [engine=$engine] after second loop_times=$loop_times, show master logs results
+
+
+# try to change the log-bin configs and restart
+--echo # ====================================now try to change the log-bin config for mysqld========================
+--let $restart_parameters= "restart: --log-bin=new_log_bin"
+--echo #begin to restart mysqld
+--source include/restart_mysqld.inc
+--let $restart_parameters= ""
+
+let $loop_times= 10;
+while ($loop_times) {
+  show binary logs;
+  flush logs;
+  show master status;
+  flush logs;
+  show master status;
+  if ($loop_times < 5)
+  {
+    reset master;
+  }
+  if ($loop_times >= 5) 
+  {
+    flush logs;
+  }
+
+  #
+  dec $loop_times;
+  --echo # left times= $loop_times
+}
+--echo # [engine=$engine] after third loop_times=$loop_times, show master logs results
+show binary logs;
+
+##cleanup
+drop database test_rotate_db;
diff --git a/sql/binlog.cc b/sql/binlog.cc
index 2889b84..b35c7c4 100644
--- a/sql/binlog.cc
+++ b/sql/binlog.cc
@@ -3137,6 +3137,7 @@
 #endif
    binlog_end_pos(0),bytes_written(0), file_id(1), open_count(1),
    sync_period_ptr(sync_period), sync_counter(0),
+   m_cur_bin_suffix(0), m_cur_tmp_suffix(0),
    is_relay_log(0), signal_cnt(0),
    checksum_alg_reset(binary_log::BINLOG_CHECKSUM_ALG_UNDEF),
    relay_log_checksum_alg(binary_log::BINLOG_CHECKSUM_ALG_UNDEF),
@@ -3280,7 +3281,7 @@
     nonzero if not possible to get unique filename.
 */
 
-static int find_uniq_filename(char *name)
+static int find_uniq_filename(char *name, ulong cur_max_suffix, ulong &res_suffix_idx)
 {
   uint                  i;
   char                  buff[FN_REFLEN], ext_buf[FN_REFLEN];
@@ -3299,22 +3300,28 @@
   *end='.';
   length= (size_t) (end - start + 1);
 
-  if ((DBUG_EVALUATE_IF("error_unique_log_filename", 1, 
+  if ((DBUG_EVALUATE_IF("error_unique_log_filename", 1,
       !(dir_info= my_dir(buff,MYF(MY_DONT_SORT))))))
   {						// This shouldn't happen
     my_stpcpy(end,".1");				// use name+1
     DBUG_RETURN(1);
   }
-  file_info= dir_info->dir_entry;
-  for (i= dir_info->number_off_files ; i-- ; file_info++)
-  {
-    if (strncmp(file_info->name, start, length) == 0 &&
-	is_number(file_info->name+length, &number,0))
+  if (0 == cur_max_suffix) {
+    //use scan dir if 0
+    file_info= dir_info->dir_entry;
+    for (i= dir_info->number_off_files ; i-- ; file_info++)
     {
-      set_if_bigger(max_found, number);
+      if (strncmp(file_info->name, start, length) == 0 &&
+          is_number(file_info->name+length, &number,0))
+      {
+        set_if_bigger(max_found, number);
+      }
     }
+    my_dirend(dir_info);
+  } else {
+    max_found = cur_max_suffix;
+    DBUG_PRINT("info", ("no scan using input idx=%lu", cur_max_suffix));
   }
-  my_dirend(dir_info);
 
   /* check if reached the maximum possible extension number */
   if (max_found == MAX_LOG_UNIQUE_FN_EXT)
@@ -3360,17 +3367,26 @@
 Remaining log filename extensions: %lu. \
 Please consider archiving some logs.", next, (MAX_LOG_UNIQUE_FN_EXT - next));
 
+  if (0 == error) {
+    res_suffix_idx = next;
+    DBUG_PRINT("info", ("res_suffix_idx updated=%lu\n", res_suffix_idx));
+  }
+
 end:
   DBUG_RETURN(error);
 }
 
+ulong MYSQL_BIN_LOG::get_binlog_suffix_idx() const
+{
+  return m_cur_bin_suffix;
+}
 
 int MYSQL_BIN_LOG::generate_new_name(char *new_name, const char *log_name)
 {
   fn_format(new_name, log_name, mysql_data_home, "", 4);
   if (!fn_ext(log_name)[0])
   {
-    if (find_uniq_filename(new_name))
+    if (find_uniq_filename(new_name, get_binlog_suffix_idx(), m_cur_tmp_suffix))
     {
       my_printf_error(ER_NO_UNIQUE_LOGFILE, ER(ER_NO_UNIQUE_LOGFILE),
                       MYF(ME_FATALERROR), log_name);
@@ -3439,6 +3455,7 @@
   my_off_t pos= 0;
   int open_flags= O_CREAT | O_BINARY;
   DBUG_ENTER("MYSQL_BIN_LOG::open");
+  DBUG_PRINT("info", ("MYSQL_BIN_LOG::open, new_name=%s", new_name));
 
   write_error= 0;
 
@@ -4923,6 +4940,9 @@
       goto err;
     }
 
+    //update suffix idx only if open new binlog and apply all success
+    update_bin_suffix_idx();
+
 #ifdef HAVE_REPLICATION
     DBUG_EXECUTE_IF("crash_create_after_update_index", DBUG_SUICIDE(););
 #endif
@@ -4943,6 +4963,8 @@
   DBUG_RETURN(0);
 
 err:
+  //fail invalidate the suffix index cache anyway
+  reset_suffix();
 #ifdef HAVE_REPLICATION
   if (is_inited_purge_index_file())
     purge_index_entry(NULL, NULL, need_lock_index);
@@ -5448,6 +5470,11 @@
   close(LOG_CLOSE_TO_BE_OPENED);
 
   /*
+   * reset currently binlog suffix, if delete fail, still be ok
+   */
+  reset_suffix();
+
+  /*
     First delete all old log files and then update the index file.
     As we first delete the log files and do not use sort of logging,
     a crash may lead to an inconsistent state where the index has
diff --git a/sql/binlog.h b/sql/binlog.h
index c605753..a60f37f 100644
--- a/sql/binlog.h
+++ b/sql/binlog.h
@@ -444,9 +444,22 @@
   uint *sync_period_ptr;
   uint sync_counter;
 
+  ulong m_cur_bin_suffix;
+  ulong m_cur_tmp_suffix;
+
+
+  //this should be called when reset
+  inline void reset_suffix()
+  {
+    m_cur_bin_suffix= 0;
+    m_cur_tmp_suffix= 0;
+    DBUG_PRINT("info", ("suffix reset already"));
+  }
+
   mysql_cond_t m_prep_xids_cond;
   Atomic_int32 m_prep_xids;
 
+
   /**
     Increment the prepared XID counter.
    */
@@ -490,9 +503,25 @@
             const char *new_name);
   bool init_and_set_log_file_name(const char *log_name,
                                   const char *new_name);
-  int generate_new_name(char *new_name, const char *log_name);
 
 public:
+  //this should be called only log creatation or rotate success and exist on disk
+  //TODO this should be private method, but for unitest
+  inline void update_bin_suffix_idx()
+  {
+    m_cur_bin_suffix= m_cur_tmp_suffix;
+    DBUG_PRINT("info", ("m_cur_tmp_suffix updated=%lu", m_cur_bin_suffix));
+  }
+  //TODO this should be private method, but for unitest
+  int generate_new_name(char *new_name, const char *log_name);
+
+  /*
+   * to fetch binlog suffix integer index, used when doing binlog rotate to avoid scan whole dir
+   * return 0 means log_file_name not set already, will scan
+   * return ulong to specify the current binlog idx
+   */
+  ulong get_binlog_suffix_idx() const;
+
   const char *generate_name(const char *log_name, const char *suffix,
                             char *buff);
   bool is_open() { return log_state.atomic_get() != LOG_CLOSED; }
diff --git a/unittest/gunit/CMakeLists.txt b/unittest/gunit/CMakeLists.txt
index f2169f9..523c964 100644
--- a/unittest/gunit/CMakeLists.txt
+++ b/unittest/gunit/CMakeLists.txt
@@ -278,7 +278,7 @@
   inplace_vector
   key
   like_range
-  mdl
+  #mdl
   my_bitmap
   my_error
   my_fileutils
@@ -365,6 +365,7 @@
   unique
   security_context
   initialize_password
+  binlog_test
 )
 
 ## Merging tests into fewer executables saves *a lot* of
diff --git a/unittest/gunit/binlog_test-t.cc b/unittest/gunit/binlog_test-t.cc
new file mode 100644
index 0000000..4ab5ebe
--- /dev/null
+++ b/unittest/gunit/binlog_test-t.cc
@@ -0,0 +1,131 @@
+
+#include <cstdio>
+#include <gtest/gtest.h>
+#include "my_config.h"
+#include "binlog.h"
+#include <vector>
+#include <string>
+#include <sys/time.h>
+
+namespace BinlogTest_unittest {
+class BinlogTest : public ::testing::Test
+{
+protected:
+  BinlogTest() : mysql_bin_log(&sync_binlog_period, WRITE_CACHE) {};
+  virtual void SetUp()
+  {
+
+  }
+
+  MYSQL_BIN_LOG mysql_bin_log;
+};
+
+TEST_F(BinlogTest, ParseBinlogSuffixTest)
+{
+  char *log_file_name_pointer = mysql_bin_log.get_log_fname();
+  ulong value;
+  printf("current log_file_name=%s\n", log_file_name_pointer);
+
+  //not init
+  value = mysql_bin_log.get_binlog_suffix_idx();
+  EXPECT_EQ(ulong (0), value);
+
+  //generate new name
+  std::vector<std::string> names_to_del;
+  char new_name[FN_REFLEN];
+  const char *log_name = "./mysql-bin";
+  EXPECT_EQ(0, mysql_bin_log.generate_new_name(new_name, log_name));
+  EXPECT_EQ(std::string(log_name) + ".000001", new_name);
+  names_to_del.push_back(new_name);
+  mysql_bin_log.update_bin_suffix_idx();
+  EXPECT_EQ(ulong(1), mysql_bin_log.get_binlog_suffix_idx());
+
+  EXPECT_EQ(0, mysql_bin_log.generate_new_name(new_name, log_name));
+  EXPECT_EQ(std::string(log_name) + ".000002", new_name);
+  names_to_del.push_back(new_name);
+  mysql_bin_log.update_bin_suffix_idx();
+  EXPECT_EQ(ulong(2), mysql_bin_log.get_binlog_suffix_idx());
+
+  //cleanup no files really created
+  /*
+  std::vector<std::string>::iterator to_del_itor = names_to_del.begin();
+  while (to_del_itor != names_to_del.end()) {
+    EXPECT_EQ(0, remove((*to_del_itor).c_str()));
+    ++to_del_itor;
+  }
+  */
+}
+
+long GetMicrotime()
+{
+  struct timeval currentTime;
+  gettimeofday(&currentTime, NULL);
+  return currentTime.tv_sec * (int)1e6 + currentTime.tv_usec;
+}
+
+TEST_F(BinlogTest, PerfTest)
+{
+  //default we do not run the perf test, if need to run, uncomment the code below
+  /*
+  using namespace std;
+  //ulong value;
+  const char *log_name = "./perf-test-mysql-bin";
+  char ext_buf[FN_REFLEN];
+  char new_name[FN_REFLEN];
+
+  //const int FILE_NUM_MAX = 100000;
+  const ulong FILE_NUM_MAX = 5000;
+  vector<string> tmp_files;
+  //prepare file
+  string pre_fix(log_name);
+  int fd = 0;
+  for (ulong i = 1; i <= FILE_NUM_MAX; ++i) {
+    EXPECT_GE(sprintf(ext_buf, "perf-test-mysql-bin.%06lu", i), 0);
+    fd = open(ext_buf, O_RDWR|O_CREAT, 0755);
+    EXPECT_GE(fd, 0);
+    tmp_files.push_back(ext_buf);
+  }
+  printf("******%lu file created******\n", FILE_NUM_MAX);
+
+  //test scan
+  const int try_times = 500;
+  printf("log_file_name=%s\n", mysql_bin_log.get_log_fname());
+  printf("suffix=%lu\n", mysql_bin_log.get_binlog_suffix_idx());
+  ulong start_time = GetMicrotime();
+  printf("[BEGIN SCAN] time=%lu\n", start_time);
+  for (int i = 0; i < try_times; ++i) {
+    EXPECT_EQ(0, mysql_bin_log.generate_new_name(new_name, log_name));
+    //printf("new_name=%s\n", new_name);
+  }
+  ulong end_time = GetMicrotime();
+  printf("[END SCAN] time=%lu\n", end_time);
+  printf("[SCAN TIMES=%d cost total=%lu avg=%f\n]", try_times,
+         (end_time - start_time), (double(end_time) - double(start_time)) / try_times);
+
+  //test given current name
+  printf("*******************************\n");
+  EXPECT_GE(sprintf(mysql_bin_log.get_log_fname(), "./perf-test-mysql-bin.%06lu", FILE_NUM_MAX), 0);
+  printf("log_file_name=%s\n", mysql_bin_log.get_log_fname());
+  printf("suffix=%lu\n", mysql_bin_log.get_binlog_suffix_idx());
+  start_time = GetMicrotime();
+  printf("[BEGIN DIRECT] time=%lu\n", start_time);
+  for (int i = 0; i < try_times; ++i) {
+    EXPECT_EQ(0, mysql_bin_log.generate_new_name(new_name, log_name));
+    mysql_bin_log.update_bin_suffix_idx();
+    //printf("new_name=%s\n", new_name);
+  }
+  end_time = GetMicrotime();
+  printf("[END DIRECT] time=%lu\n", end_time);
+  printf("[DIRECT TIMES=%d cost total=%lu avg=%f\n]", try_times,
+         (end_time - start_time), (double(end_time) - double(start_time)) / try_times);
+  //delete file
+  vector<string>::iterator start = tmp_files.begin();
+  while (start != tmp_files.end()) {
+    EXPECT_EQ(0, remove((*start).c_str()));
+    ++start;
+  }
+  printf("******%lu file deleted******\n", FILE_NUM_MAX);
+  */
+}
+
+}//end of namespace BinlogTest_unittest
