~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_rli.h

  • Committer: Stewart Smith
  • Date: 2008-09-15 07:13:59 UTC
  • mfrom: (383.1.21 drizzle)
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080915071359-f8bznznyaiqrtqxa
merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include "rpl_reporting.h"
21
21
#include "rpl_utility.h"
22
22
 
23
 
struct RPL_TABLE_LIST;
 
23
struct RPL_TableList;
24
24
class Master_info;
25
25
 
26
26
/****************************************************************************
92
92
    Protected with internal locks.
93
93
    Must get data_lock when resetting the logs.
94
94
  */
95
 
  MYSQL_BIN_LOG relay_log;
 
95
  DRIZZLE_BIN_LOG relay_log;
96
96
  LOG_INFO linfo;
97
97
  IO_CACHE cache_buf,*cur_log;
98
98
 
106
106
    created temporary tables. Modified only on init/end and by the SQL
107
107
    thread, read only by SQL thread.
108
108
  */
109
 
  TABLE *save_temporary_tables;
 
109
  Table *save_temporary_tables;
110
110
 
111
111
  /*
112
112
    standard lock acquistion order to avoid deadlocks:
297
297
            group_relay_log_pos);
298
298
  }
299
299
 
300
 
  RPL_TABLE_LIST *tables_to_lock;           /* RBR: Tables to lock  */
 
300
  RPL_TableList *tables_to_lock;           /* RBR: Tables to lock  */
301
301
  uint32_t tables_to_lock_count;        /* RBR: Count of tables to lock */
302
302
  table_mapping m_table_map;      /* RBR: Mapping table-id to table */
303
303
 
304
 
  inline table_def *get_tabledef(TABLE *tbl)
 
304
  inline table_def *get_tabledef(Table *tbl)
305
305
  {
306
306
    table_def *td= 0;
307
 
    for (TABLE_LIST *ptr= tables_to_lock; ptr && !td; ptr= ptr->next_global)
 
307
    for (TableList *ptr= tables_to_lock; ptr && !td; ptr= ptr->next_global)
308
308
      if (ptr->table == tbl)
309
 
        td= &((RPL_TABLE_LIST *)ptr)->m_tabledef;
 
309
        td= &((RPL_TableList *)ptr)->m_tabledef;
310
310
    return (td);
311
311
  }
312
312