~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log_event.h

  • Committer: Brian Aker
  • Date: 2008-11-03 21:00:47 UTC
  • mfrom: (520.9.5 devel)
  • Revision ID: brian@tangent.org-20081103210047-wfkeyyefrfl2vh4l
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
832
832
  }
833
833
 
834
834
  static void operator delete(void *ptr,
835
 
                              size_t size __attribute__((unused)))
 
835
                              size_t)
836
836
  {
837
837
    free((unsigned char*) ptr);
838
838
  }
848
848
            write_data_header(file) ||
849
849
            write_data_body(file));
850
850
  }
851
 
  virtual bool write_data_header(IO_CACHE* file __attribute__((unused)))
 
851
  virtual bool write_data_header(IO_CACHE*)
852
852
  { return 0; }
853
 
  virtual bool write_data_body(IO_CACHE* file __attribute__((unused)))
 
853
  virtual bool write_data_body(IO_CACHE*)
854
854
  { return 0; }
855
855
  inline time_t get_time()
856
856
  {
975
975
    @retval 0     Event applied successfully
976
976
    @retval errno Error code if event application failed
977
977
  */
978
 
  virtual int do_apply_event(Relay_log_info const *rli __attribute__((unused)))
 
978
  virtual int do_apply_event(Relay_log_info const *)
979
979
  {
980
980
    return 0;                /* Default implementation does nothing */
981
981
  }
1469
1469
  }
1470
1470
  Log_event_type get_type_code() { return QUERY_EVENT; }
1471
1471
  bool write(IO_CACHE* file);
1472
 
  virtual bool write_post_header_for_derived(IO_CACHE* file __attribute__((unused)))
 
1472
  virtual bool write_post_header_for_derived(IO_CACHE*)
1473
1473
  { return false; }
1474
1474
  bool is_valid() const { return query != 0; }
1475
1475
 
2182
2182
  Item_result type;
2183
2183
  uint32_t charset_number;
2184
2184
  bool is_null;
2185
 
  User_var_log_event(Session* session_arg __attribute__((unused)),
 
2185
  User_var_log_event(Session*,
2186
2186
                     char *name_arg, uint32_t name_len_arg,
2187
2187
                     char *val_arg, ulong val_len_arg, Item_result type_arg,
2188
2188
                     uint32_t charset_number_arg)
2229
2229
 
2230
2230
private:
2231
2231
  virtual int do_update_pos(Relay_log_info *rli);
2232
 
  virtual enum_skip_reason do_shall_skip(Relay_log_info *rli __attribute__((unused)))
 
2232
  virtual enum_skip_reason do_shall_skip(Relay_log_info *)
2233
2233
  {
2234
2234
    /*
2235
2235
      Events from ourself should be skipped, but they should not
3146
3146
                       const Format_description_log_event *description_event);
3147
3147
  static bool binlog_row_logging_function(Session *session, Table *table,
3148
3148
                                          bool is_transactional,
3149
 
                                          const unsigned char *before_record
3150
 
                                          __attribute__((unused)),
 
3149
                                          const unsigned char *,
3151
3150
                                          const unsigned char *after_record)
3152
3151
  {
3153
3152
    return session->binlog_write_row(table, is_transactional, after_record);
3251
3250
  static bool binlog_row_logging_function(Session *session, Table *table,
3252
3251
                                          bool is_transactional,
3253
3252
                                          const unsigned char *before_record,
3254
 
                                          const unsigned char *after_record
3255
 
                                          __attribute__((unused)))
 
3253
                                          const unsigned char *)
3256
3254
  {
3257
3255
    return session->binlog_delete_row(table, is_transactional, before_record);
3258
3256
  }