~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/slave.h

  • Committer: Lee
  • Date: 2008-10-03 23:31:06 UTC
  • mfrom: (413.2.3 drizzle)
  • mto: This revision was merged to the branch mainline in revision 459.
  • Revision ID: lbieber@lbieber-desktop-20081003233106-tgvzu0fh25gb3xeg
breaking out enum field classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
*/
38
38
#define SLAVE_MAX_HEARTBEAT_PERIOD 4294967
39
39
 
 
40
#ifdef HAVE_REPLICATION
 
41
 
40
42
#include "log.h"
41
43
#include <mysys/my_list.h>
42
44
#include "rpl_filter.h"
134
136
#define DRIZZLE_SLAVE_RUN_NOT_CONNECT 1
135
137
#define DRIZZLE_SLAVE_RUN_CONNECT     2
136
138
 
137
 
#define RPL_LOG_NAME (rli->group_master_log_name.length() ? rli->group_master_log_name.c_str() : "FIRST")
138
 
#define IO_RPL_LOG_NAME (mi->getLogName() ? mi->getLogName() : "FIRST")
 
139
#define RPL_LOG_NAME (rli->group_master_log_name[0] ? rli->group_master_log_name :\
 
140
 "FIRST")
 
141
#define IO_RPL_LOG_NAME (mi->master_log_name[0] ? mi->master_log_name :\
 
142
 "FIRST")
139
143
 
140
144
/*
141
145
  If the following is set, if first gives an error, second will be
197
201
int32_t purge_relay_logs(Relay_log_info* rli, THD *thd, bool just_reset,
198
202
                     const char** errmsg);
199
203
void set_slave_thread_options(THD* thd);
 
204
void set_slave_thread_default_charset(THD *thd, Relay_log_info const *rli);
200
205
void rotate_relay_log(Master_info* mi);
201
206
int32_t apply_event_and_update_pos(Log_event* ev, THD* thd, Relay_log_info* rli,
202
207
                               bool skip);
222
227
       
223
228
extern I_List<THD> threads;
224
229
 
 
230
#endif /* HAVE_REPLICATION */
 
231
 
225
232
/* masks for start/stop operations on io and sql slave threads */
226
233
#define SLAVE_IO  1
227
234
#define SLAVE_SQL 2