~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/log_event.h

  • Committer: Brian Aker
  • Date: 2008-07-26 18:39:33 UTC
  • mfrom: (212.1.3 codestyle)
  • Revision ID: brian@tangent.org-20080726183933-hueup0fcy2zs1hug
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
929
929
  }
930
930
 
931
931
  static void operator delete(void *ptr,
932
 
                              size_t size __attribute__((__unused__)))
 
932
                              size_t size __attribute__((unused)))
933
933
  {
934
934
    my_free((uchar*) ptr, MYF(MY_WME|MY_ALLOW_ZERO_PTR));
935
935
  }
946
946
            write_data_header(file) ||
947
947
            write_data_body(file));
948
948
  }
949
 
  virtual bool write_data_header(IO_CACHE* file __attribute__((__unused__)))
 
949
  virtual bool write_data_header(IO_CACHE* file __attribute__((unused)))
950
950
  { return 0; }
951
951
  virtual bool write_data_body(IO_CACHE* file __attribute__((unused)))
952
952
  { return 0; }
1075
1075
    @retval 0     Event applied successfully
1076
1076
    @retval errno Error code if event application failed
1077
1077
  */
1078
 
  virtual int do_apply_event(Relay_log_info const *rli __attribute__((__unused__)))
 
1078
  virtual int do_apply_event(Relay_log_info const *rli __attribute__((unused)))
1079
1079
  {
1080
1080
    return 0;                /* Default implementation does nothing */
1081
1081
  }
1578
1578
  Log_event_type get_type_code() { return QUERY_EVENT; }
1579
1579
#ifndef MYSQL_CLIENT
1580
1580
  bool write(IO_CACHE* file);
1581
 
  virtual bool write_post_header_for_derived(IO_CACHE* file __attribute__((__unused__)))
 
1581
  virtual bool write_post_header_for_derived(IO_CACHE* file __attribute__((unused)))
1582
1582
  { return false; }
1583
1583
#endif
1584
1584
  bool is_valid() const { return query != 0; }
2368
2368
  uint charset_number;
2369
2369
  bool is_null;
2370
2370
#ifndef MYSQL_CLIENT
2371
 
  User_var_log_event(THD* thd_arg __attribute__((__unused__)),
 
2371
  User_var_log_event(THD* thd_arg __attribute__((unused)),
2372
2372
                     char *name_arg, uint name_len_arg,
2373
2373
                     char *val_arg, ulong val_len_arg, Item_result type_arg,
2374
2374
                     uint charset_number_arg)
2427
2427
private:
2428
2428
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
2429
2429
  virtual int do_update_pos(Relay_log_info *rli);
2430
 
  virtual enum_skip_reason do_shall_skip(Relay_log_info *rli __attribute__((__unused__)))
 
2430
  virtual enum_skip_reason do_shall_skip(Relay_log_info *rli __attribute__((unused)))
2431
2431
  {
2432
2432
    /*
2433
2433
      Events from ourself should be skipped, but they should not