diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2015-03-11 09:18:16 +0100 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2015-03-11 09:18:16 +0100 |
commit | ed04c40b01c122436eda6552c550d62ce8a3920b (patch) | |
tree | b36044637c34b07c0528f82c8a238fdb868ea1ab /sql/rpl_mi.h | |
parent | a7fd11b31d52b62ef7b61783bb83a5e62271307b (diff) | |
download | mariadb-git-ed04c40b01c122436eda6552c550d62ce8a3920b.tar.gz |
MDEV-5289: master server starts slave parallel threads
Delay spawning parallel replication worker threads until a slave SQL
thread is running, and de-spawn them when the last SQL thread stops.
This is especially useful to avoid needless threads on a master in a
setup where same my.cnf is used on masters and slaves.
Diffstat (limited to 'sql/rpl_mi.h')
-rw-r--r-- | sql/rpl_mi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/rpl_mi.h b/sql/rpl_mi.h index ebb1b541728..2b0b40feb3d 100644 --- a/sql/rpl_mi.h +++ b/sql/rpl_mi.h @@ -218,6 +218,7 @@ public: Master_info *get_master_info(LEX_STRING *connection_name, Sql_condition::enum_warning_level warning); bool give_error_if_slave_running(); + bool any_slave_sql_running(); bool start_all_slaves(THD *thd); bool stop_all_slaves(THD *thd); }; |