~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/log_event.h

Heap builds clean.
Moved my_handler.c back to mysys - I missed that heap also uses it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
951
951
            write_data_header(file) ||
952
952
            write_data_body(file));
953
953
  }
954
 
  virtual bool write_data_header(IO_CACHE* file)
 
954
  virtual bool write_data_header(IO_CACHE* file __attribute__((__unused__)))
955
955
  { return 0; }
956
956
  virtual bool write_data_body(IO_CACHE* file __attribute__((unused)))
957
957
  { return 0; }
1080
1080
    @retval 0     Event applied successfully
1081
1081
    @retval errno Error code if event application failed
1082
1082
  */
1083
 
  virtual int do_apply_event(Relay_log_info const *rli)
 
1083
  virtual int do_apply_event(Relay_log_info const *rli __attribute__((__unused__)))
1084
1084
  {
1085
1085
    return 0;                /* Default implementation does nothing */
1086
1086
  }
1583
1583
  Log_event_type get_type_code() { return QUERY_EVENT; }
1584
1584
#ifndef MYSQL_CLIENT
1585
1585
  bool write(IO_CACHE* file);
1586
 
  virtual bool write_post_header_for_derived(IO_CACHE* file) { return FALSE; }
 
1586
  virtual bool write_post_header_for_derived(IO_CACHE* file __attribute__((__unused__)))
 
1587
  { return FALSE; }
1587
1588
#endif
1588
1589
  bool is_valid() const { return query != 0; }
1589
1590
 
2372
2373
  uint charset_number;
2373
2374
  bool is_null;
2374
2375
#ifndef MYSQL_CLIENT
2375
 
  User_var_log_event(THD* thd_arg, char *name_arg, uint name_len_arg,
 
2376
  User_var_log_event(THD* thd_arg __attribute__((__unused__)),
 
2377
                     char *name_arg, uint name_len_arg,
2376
2378
                     char *val_arg, ulong val_len_arg, Item_result type_arg,
2377
2379
                     uint charset_number_arg)
2378
2380
    :Log_event(), name(name_arg), name_len(name_len_arg), val(val_arg),
2430
2432
private:
2431
2433
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
2432
2434
  virtual int do_update_pos(Relay_log_info *rli);
2433
 
  virtual enum_skip_reason do_shall_skip(Relay_log_info *rli)
 
2435
  virtual enum_skip_reason do_shall_skip(Relay_log_info *rli __attribute__((__unused__)))
2434
2436
  {
2435
2437
    /*
2436
2438
      Events from ourself should be skipped, but they should not