summaryrefslogtreecommitdiff
path: root/sql/sql_repl.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r--sql/sql_repl.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h
index 7f7751b8f44..a9fdce9e5e2 100644
--- a/sql/sql_repl.h
+++ b/sql/sql_repl.h
@@ -56,14 +56,15 @@ extern int init_master_info(Master_info* mi);
void kill_zombie_dump_threads(uint32 slave_server_id);
int check_binlog_magic(IO_CACHE* log, const char** errmsg);
-typedef struct st_load_file_info
+struct LOAD_FILE_IO_CACHE : public IO_CACHE
{
THD* thd;
my_off_t last_pos_in_file;
bool wrote_create_file, log_delayed;
-} LOAD_FILE_INFO;
+ int (*real_read_function)(struct st_io_cache *,uchar *,size_t);
+};
-int log_loaded_block(IO_CACHE* file);
+int log_loaded_block(IO_CACHE* file, uchar *Buffer, size_t Count);
int init_replication_sys_vars();
void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos, ushort flags);
@@ -80,6 +81,10 @@ int rpl_load_gtid_state(slave_connection_state *state, bool use_binlog);
bool rpl_gtid_pos_check(THD *thd, char *str, size_t len);
bool rpl_gtid_pos_update(THD *thd, char *str, size_t len);
+#else
+
+struct LOAD_FILE_IO_CACHE : public IO_CACHE { };
+
#endif /* HAVE_REPLICATION */
#endif /* SQL_REPL_INCLUDED */