1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
Sujatha
2019-06-25 15:02:34 +05:30
parent b3b965a94d
commit 2a8ae4bdce
6 changed files with 89 additions and 37 deletions

View File

@ -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
{