summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-08-31 17:38:31 +0200
committerSergei Golubchik <serg@mariadb.org>2015-09-04 10:33:52 +0200
commit274a47a50be586b72e1954a1cb3bc6fba402baa2 (patch)
treea149ee7109e175a27f6908501d340aa836756ce5 /sql/log_event.h
parent2d2286faf3085160dbe345fe403c11c712a358ff (diff)
downloadmariadb-git-274a47a50be586b72e1954a1cb3bc6fba402baa2.tar.gz
cleanup: remove Slave_log_event (unused since 2002)
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h90
1 files changed, 0 insertions, 90 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 9aa661f8cb2..4c2dca14f3b 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -2040,96 +2040,6 @@ public: /* !!! Public in this patch to allow old usage */
};
-#ifdef HAVE_REPLICATION
-
-/**
- @class Slave_log_event
-
- Note that this class is currently not used at all; no code writes a
- @c Slave_log_event (though some code in @c repl_failsafe.cc reads @c
- Slave_log_event). So it's not a problem if this code is not
- maintained.
-
- @section Slave_log_event_binary_format Binary Format
-
- This event type has no Post-Header. The Body has the following
- four components.
-
- <table>
- <caption>Body for Slave_log_event</caption>
-
- <tr>
- <th>Name</th>
- <th>Format</th>
- <th>Description</th>
- </tr>
-
- <tr>
- <td>master_pos</td>
- <td>8 byte integer</td>
- <td>???TODO
- </td>
- </tr>
-
- <tr>
- <td>master_port</td>
- <td>2 byte integer</td>
- <td>???TODO</td>
- </tr>
-
- <tr>
- <td>master_host</td>
- <td>null-terminated string</td>
- <td>???TODO</td>
- </tr>
-
- <tr>
- <td>master_log</td>
- <td>null-terminated string</td>
- <td>???TODO</td>
- </tr>
- </table>
-*/
-class Slave_log_event: public Log_event
-{
-protected:
- char* mem_pool;
- void init_from_mem_pool(int data_size);
-public:
- my_off_t master_pos;
- char* master_host;
- char* master_log;
- int master_host_len;
- int master_log_len;
- uint16 master_port;
-
-#ifdef MYSQL_SERVER
- Slave_log_event(THD* thd_arg, Relay_log_info* rli);
- void pack_info(THD *thd, Protocol* protocol);
-#else
- void print(FILE* file, PRINT_EVENT_INFO* print_event_info);
-#endif
-
- Slave_log_event(const char* buf,
- uint event_len,
- const Format_description_log_event *description_event);
- ~Slave_log_event();
- int get_data_size();
- bool is_valid() const { return master_host != 0; }
- Log_event_type get_type_code() { return SLAVE_EVENT; }
-#ifdef MYSQL_SERVER
- bool write(IO_CACHE* file);
-#endif
-
-private:
-#if defined(MYSQL_SERVER) && defined(HAVE_REPLICATION)
- virtual int do_apply_event(rpl_group_info *rgi);
-#endif
-};
-
-#endif /* HAVE_REPLICATION */
-
-
/**
@class Load_log_event