From 2a8ae4bdce291dee4754e998111c3d429edc5954 Mon Sep 17 00:00:00 2001 From: Sujatha Date: Tue, 25 Jun 2019 15:02:34 +0530 Subject: MDEV-19855: Create "Sql_cmd_show_slave_status" class for "SHOW SLAVE STATUS" command. Create "Sql_cmd_show_slave_status" class for "SHOW SLAVE STATUS" command. --- sql/sql_cmd.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'sql/sql_cmd.h') diff --git a/sql/sql_cmd.h b/sql/sql_cmd.h index 7f1fd06aa46..1f8f2dcabc9 100644 --- a/sql/sql_cmd.h +++ b/sql/sql_cmd.h @@ -208,6 +208,26 @@ protected: } }; +class Sql_cmd_show_slave_status: public Sql_cmd +{ +protected: + bool show_all_slaves_status; +public: + Sql_cmd_show_slave_status() + :show_all_slaves_status(false) + {} + + Sql_cmd_show_slave_status(bool status_all) + :show_all_slaves_status(status_all) + {} + + enum_sql_command sql_command_code() const { return SQLCOM_SHOW_SLAVE_STAT; } + + bool execute(THD *thd); + bool is_show_all_slaves_stat() { return show_all_slaves_status; } +}; + + class Sql_cmd_create_table_like: public Sql_cmd, public Storage_engine_name { -- cgit v1.2.1