~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log_event.h

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include <drizzled/replication/constants.h>
38
38
#include <drizzled/replication/record.h>
39
39
#include <drizzled/replication/reporting.h>
 
40
#include <drizzled/session.h>
40
41
#include <string>
41
42
 
42
43
#include <drizzled/sql_string.h>       /* append_query_string() needs String declaration */
801
802
    constructor and pass description_event as an argument.
802
803
  */
803
804
  static Log_event* read_log_event(IO_CACHE* file,
804
 
                                   pthread_mutex_t* log_lock,
 
805
                                   pthread_mutex_t* log_lock,
805
806
                                   const Format_description_log_event
806
807
                                   *description_event);
807
808
  static int read_log_event(IO_CACHE* file, String* packet,
808
 
                            pthread_mutex_t* log_lock);
 
809
                            pthread_mutex_t* log_lock);
809
810
  /*
810
811
    init_show_field_list() prepares the column names and types for the
811
812
    output of SHOW BINLOG EVENTS; it is used only by SHOW BINLOG
821
822
 
822
823
  virtual void pack_info(Protocol *protocol);
823
824
 
824
 
  virtual const char* get_db()
825
 
  {
826
 
    return session ? session->db : 0;
827
 
  }
 
825
  virtual const char* get_db();
828
826
 
829
827
  static void *operator new(size_t size)
830
828
  {
852
850
  { return 0; }
853
851
  virtual bool write_data_body(IO_CACHE*)
854
852
  { return 0; }
855
 
  inline time_t get_time()
856
 
  {
857
 
    Session *tmp_session;
858
 
    if (when)
859
 
      return when;
860
 
    if (session)
861
 
      return session->start_time;
862
 
    if ((tmp_session= current_session))
863
 
      return tmp_session->start_time;
864
 
    return my_time(0);
865
 
  }
 
853
  time_t get_time();
866
854
  virtual Log_event_type get_type_code() = 0;
867
855
  virtual bool is_valid() const = 0;
868
856
  virtual bool is_artificial_event() { return 0; }