~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_rli.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:
20
20
#ifndef RPL_RLI_H
21
21
#define RPL_RLI_H
22
22
 
23
 
#include <string>
24
23
#include "rpl_tblmap.h"
25
24
#include "rpl_reporting.h"
26
25
#include "rpl_utility.h"
153
152
    happen when, for example, the relay log gets rotated because of
154
153
    max_binlog_size.
155
154
  */
156
 
  std::string group_relay_log_name;
 
155
  char group_relay_log_name[FN_REFLEN];
157
156
  uint64_t group_relay_log_pos;
158
 
  std::string event_relay_log_name;
 
157
  char event_relay_log_name[FN_REFLEN];
159
158
  uint64_t event_relay_log_pos;
160
159
  uint64_t future_event_relay_log_pos;
161
160
 
170
169
     binlog the log_pos that comes with each event is the position of the
171
170
     beginning of the group.
172
171
  */
173
 
  std::string group_master_log_name;
 
172
  char group_master_log_name[FN_REFLEN];
174
173
  volatile my_off_t group_master_log_pos;
175
174
 
176
175
  /*
238
237
    UNTIL_LOG_NAMES_CMP_EQUAL= 0, UNTIL_LOG_NAMES_CMP_GREATER= 1
239
238
  } until_log_names_cmp_result;
240
239
 
 
240
  char cached_charset[6];
241
241
  /*
242
242
    trans_retries varies between 0 to slave_transaction_retries and counts how
243
243
    many times the slave has retried the present transaction; gets reset to 0
314
314
    return (td);
315
315
  }
316
316
 
 
317
  /*
 
318
    Last charset (6 bytes) seen by slave SQL thread is cached here; it helps
 
319
    the thread save 3 get_charset() per Query_log_event if the charset is not
 
320
    changing from event to event (common situation).
 
321
    When the 6 bytes are equal to 0 is used to mean "cache is invalidated".
 
322
  */
 
323
  void cached_charset_invalidate();
 
324
  bool cached_charset_compare(char *charset) const;
 
325
 
317
326
  void cleanup_context(THD *, bool);
318
327
  void clear_tables_to_lock();
319
328