diff options
author | Sujatha <sujatha.sivakumar@mariadb.com> | 2019-06-25 15:02:34 +0530 |
---|---|---|
committer | Sujatha <sujatha.sivakumar@mariadb.com> | 2019-07-01 19:25:12 +0530 |
commit | 2a8ae4bdce291dee4754e998111c3d429edc5954 (patch) | |
tree | 9b19964d1da92762e50246db2507b0794d2d0513 /sql/sql_cmd.h | |
parent | b3b965a94d8fea68ac475f6eefc35caf297fd806 (diff) | |
download | mariadb-git-2a8ae4bdce291dee4754e998111c3d429edc5954.tar.gz |
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.
Diffstat (limited to 'sql/sql_cmd.h')
-rw-r--r-- | sql/sql_cmd.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 { |