~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_mi.h

  • Committer: Brian Aker
  • Date: 2008-10-08 07:48:37 UTC
  • Revision ID: brian@tangent.org-20081008074837-fl4pbrupvvtolezn
Wrote out master.info (more of it). Add to this more private'izing of
Master_Info object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
{
64
64
private:
65
65
  drizzle::MasterList list;
 
66
  string master_info_filename;
 
67
  string master_log_name;
 
68
  uint16_t port;
 
69
  off_t master_log_pos;
66
70
 
67
71
public:
68
72
 
69
73
  /* the variables below are needed because we can change masters on the fly */
70
 
  string master_log_name;
71
74
  string host;
72
75
  string user;
73
76
  string password;
74
 
  uint16_t port;
75
77
  uint32_t connect_retry;
76
 
  off_t master_log_pos;
77
78
  THD *io_thd;
78
79
  Master_info();
79
80
  ~Master_info();
80
81
 
81
 
  File fd; // we keep the file open, so we need to remember the file pointer
82
 
  IO_CACHE file;
83
 
 
84
 
  pthread_mutex_t data_lock,run_lock;
85
 
  pthread_cond_t data_cond,start_cond,stop_cond;
 
82
  pthread_mutex_t data_lock;
 
83
  pthread_mutex_t run_lock;
 
84
  pthread_cond_t data_cond;
 
85
  pthread_cond_t start_cond;
 
86
  pthread_cond_t stop_cond;
86
87
  DRIZZLE *drizzle;
87
88
  uint32_t file_id;                             /* for 3.23 load data infile */
88
89
  Relay_log_info rli;
102
103
     clock_of_slave - last_timestamp_executed_by_SQL_thread - clock_diff_with_master
103
104
 
104
105
  */
105
 
  long clock_diff_with_master;
106
 
  int flush_master_info(bool flush_relay_log_cache);
 
106
  time_t clock_diff_with_master;
 
107
  int flush();
107
108
  void end_master_info();
108
109
  void reset();
109
110
 
124
125
 
125
126
  off_t getLogPosition();
126
127
  bool setLogPosition(off_t position);
 
128
  void incrementLogPosition(off_t position);
127
129
 
128
130
  const char *getLogName();
129
131
  bool setLogName(const char *name);