diff options
author | Sachin Setiya <sachin.setiya@mariadb.com> | 2017-06-05 13:10:24 +0530 |
---|---|---|
committer | Sachin Setiya <sachin.setiya@mariadb.com> | 2017-06-05 13:11:10 +0530 |
commit | da61107fc8481b03ae858188dd03b3114e7aa084 (patch) | |
tree | 5964b2c334614bfdf12cfd24a5d627bb1c451aa9 /sql/rpl_mi.h | |
parent | 112b21da37dad0fbb28bc65f9ab5a3ba6c0c2186 (diff) | |
download | mariadb-git-da61107fc8481b03ae858188dd03b3114e7aa084.tar.gz |
MDEV-9544 FLUSH [RELAY] LOGS does not rotate logs for a named slave
Problem:- In the case of multisource replication/named slave
when we run "FLUSH LOGS" , it does not flush logs.
Solution:- A new function Master_info_index->flush_all_relay_logs()
is created which will rotate relay logs for all named slave.
This will be called in reload_acl_and_cache function when
connection_name.length == 0
Diffstat (limited to 'sql/rpl_mi.h')
-rw-r--r-- | sql/rpl_mi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/rpl_mi.h b/sql/rpl_mi.h index 31c0f280ac1..d0f6171815c 100644 --- a/sql/rpl_mi.h +++ b/sql/rpl_mi.h @@ -302,6 +302,7 @@ class Master_info : public Slave_reporting_capability /* gtid_event_seen is false until we receive first GTID event from master. */ bool gtid_event_seen; bool in_start_all_slaves, in_stop_all_slaves; + bool in_flush_all_relay_logs; uint users; /* Active user for object */ uint killed; @@ -354,6 +355,7 @@ public: bool start_all_slaves(THD *thd); bool stop_all_slaves(THD *thd); void free_connections(); + bool flush_all_relay_logs(); }; |