![]() |
MySQL 8.0.43
Source Code Documentation
|
#include "sql/sql_binlog.h"#include <stddef.h>#include <sys/types.h>#include <utility>#include "base64.h"#include "lex_string.h"#include "libbinlogevents/include/binlog_event.h"#include "m_string.h"#include "my_byteorder.h"#include "my_dbug.h"#include "my_inttypes.h"#include "my_sys.h"#include "mysql/service_mysql_alloc.h"#include "mysqld_error.h"#include "sql/auth/auth_acls.h"#include "sql/auth/sql_security_ctx.h"#include "sql/binlog_reader.h"#include "sql/log_event.h"#include "sql/psi_memory_key.h"#include "sql/rpl_info_factory.h"#include "sql/rpl_info_handler.h"#include "sql/rpl_rli.h"#include "sql/sql_class.h"#include "sql/sql_lex.h"#include "sql/system_variables.h"Functions | |
| static int | check_event_type (int type, Relay_log_info *rli) |
| Check if the event type is allowed in a BINLOG statement. More... | |
| void | mysql_client_binlog_statement (THD *thd) |
| Execute a BINLOG statement. More... | |
|
static |
Check if the event type is allowed in a BINLOG statement.
| 0 | if the event type is ok. |
| 1 | if the event type is not ok. |
| void mysql_client_binlog_statement | ( | THD * | thd | ) |
Execute a BINLOG statement.
To execute the BINLOG command properly the server needs to know which format the BINLOG command's event is in. Therefore, the first BINLOG statement seen must be a base64 encoding of the Format_description_log_event, as outputted by mysqlbinlog. This Format_description_log_event is cached in rli->rli_description_event.
| thd | Pointer to THD object for the client thread executing the statement. |