From 04c781f4d581d2b3a28ca44ec2be8586af2a6293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 7 Jun 2018 09:41:23 +0300 Subject: [PATCH] Remove unused struct The BINLOG_EVENT_DESC struct wasn't used. --- server/modules/include/binlog_common.h | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/server/modules/include/binlog_common.h b/server/modules/include/binlog_common.h index e881e57d5..eb0a2af69 100644 --- a/server/modules/include/binlog_common.h +++ b/server/modules/include/binlog_common.h @@ -26,25 +26,17 @@ MXS_BEGIN_DECLS */ typedef struct rep_header { - int payload_len; /*< Payload length (24 bits) */ - uint8_t seqno; /*< Response sequence number */ - uint8_t ok; /*< OK Byte from packet */ - uint32_t timestamp; /*< Timestamp - start of binlog record */ - uint8_t event_type; /*< Binlog event type */ - uint32_t serverid; /*< Server id of master */ - uint32_t event_size; /*< Size of header, post-header and body */ - uint32_t next_pos; /*< Position of next event */ - uint16_t flags; /*< Event flags */ + int payload_len; /*< Payload length (24 bits) */ + uint8_t seqno; /*< Response sequence number */ + uint8_t ok; /*< OK Byte from packet */ + uint32_t timestamp; /*< Timestamp - start of binlog record */ + uint8_t event_type; /*< Binlog event type */ + uint32_t serverid; /*< Server id of master */ + uint32_t event_size; /*< Size of header, post-header and body */ + uint32_t next_pos; /*< Position of next event */ + uint16_t flags; /*< Event flags */ } REP_HEADER; -/** Format Description event info */ -typedef struct binlog_event_desc -{ - unsigned long long event_pos; - uint8_t event_type; - time_t event_time; -} BINLOG_EVENT_DESC; - int blr_file_get_next_binlogname(const char *binlog_name); bool binlog_next_file_exists(const char* binlogdir, const char* binlog); uint32_t extract_field(uint8_t *src, int bits);