~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_repl.h

  • Committer: Mark Atwood
  • Date: 2008-10-16 11:33:16 UTC
  • mto: (520.1.13 drizzle)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: mark@fallenpegasus.com-20081016113316-ff6jdt31ck90sjdh
an implemention of the errmsg plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_REPLICATION_REPLICATION_H
21
 
#define DRIZZLED_REPLICATION_REPLICATION_H
22
 
 
23
 
#include <libdrizzle/libdrizzle.h>
24
 
#include <mysys/hash.h>
25
 
 
 
20
#include "rpl_filter.h"
26
21
 
27
22
#include "slave.h"
28
23
 
34
29
  char user[USERNAME_LENGTH+1];
35
30
  char password[MAX_PASSWORD_LENGTH+1];
36
31
  uint16_t port;
37
 
  Session* session;
 
32
  THD* thd;
38
33
} SLAVE_INFO;
39
34
 
40
35
extern bool opt_show_slave_auth_info;
43
38
 
44
39
extern int max_binlog_dump_events;
45
40
 
46
 
int start_slave(Session* session, Master_info* mi, bool net_report);
47
 
int stop_slave(Session* session, Master_info* mi, bool net_report);
48
 
bool change_master(Session* session, Master_info* mi);
49
 
bool mysql_show_binlog_events(Session* session);
 
41
int start_slave(THD* thd, Master_info* mi, bool net_report);
 
42
int stop_slave(THD* thd, Master_info* mi, bool net_report);
 
43
bool change_master(THD* thd, Master_info* mi);
 
44
bool mysql_show_binlog_events(THD* thd);
50
45
int cmp_master_pos(const char* log_file_name1, uint64_t log_pos1,
51
46
                   const char* log_file_name2, uint64_t log_pos2);
52
 
int reset_slave(Session *session, Master_info* mi);
53
 
int reset_master(Session* session);
54
 
bool purge_master_logs(Session* session, const char* to_log);
55
 
bool purge_master_logs_before_date(Session* session, time_t purge_time);
 
47
int reset_slave(THD *thd, Master_info* mi);
 
48
int reset_master(THD* thd);
 
49
bool purge_master_logs(THD* thd, const char* to_log);
 
50
bool purge_master_logs_before_date(THD* thd, time_t purge_time);
56
51
bool log_in_use(const char* log_name);
57
52
void adjust_linfo_offsets(my_off_t purge_offset);
58
 
bool show_binlogs(Session* session);
 
53
bool show_binlogs(THD* thd);
59
54
void kill_zombie_dump_threads(uint32_t slave_server_id);
60
55
int check_binlog_magic(IO_CACHE* log, const char** errmsg);
61
56
 
62
57
typedef struct st_load_file_info
63
58
{
64
 
  Session* session;
 
59
  THD* thd;
65
60
  my_off_t last_pos_in_file;
66
61
  bool wrote_create_file, log_delayed;
67
62
} LOAD_FILE_INFO;
68
63
 
69
64
int log_loaded_block(IO_CACHE* file);
70
65
int init_replication_sys_vars();
71
 
 
72
 
void mysql_binlog_send(Session* session, char* log_ident, my_off_t pos, uint16_t flags);
73
 
 
74
 
#endif /* DRIZZLED_REPLICATION_REPLICATION_H */