~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-21 20:18:40 UTC
  • mto: (2245.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2246.
  • Revision ID: olafvdspek@gmail.com-20110321201840-izqw5whmv3acex6x
Refactor Session::transaction (partial)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include <drizzled/sql_list.h>
43
43
#include <drizzled/sql_error.h>
44
44
#include <drizzled/sql_locale.h>
45
 
// #include <drizzled/system_variables.h>
46
45
#include <drizzled/visibility.h>
47
46
#include <drizzled/util/find_ptr.h>
48
47
#include <drizzled/util/string.h>
71
70
72
71
  class State; 
73
72
  class TableMessages;
 
73
  class Transactions;
74
74
}
75
75
 
76
76
namespace table 
103
103
struct Ha_data;
104
104
 
105
105
typedef Item COND;
 
106
typedef uint64_t my_xid;
106
107
 
107
108
extern char internal_table_name[2];
108
109
extern char empty_c_string[1];
109
110
extern const char **errmesg;
 
111
extern uint32_t server_id;
110
112
 
111
113
#define TC_HEURISTIC_RECOVER_COMMIT   1
112
114
#define TC_HEURISTIC_RECOVER_ROLLBACK 2
816
818
  }
817
819
 
818
820
  /** Returns the current transaction ID for the session's current statement */
819
 
  inline my_xid getTransactionId()
820
 
  {
821
 
    return transaction.xid_state.xid.quick_get_my_xid();
822
 
  }
 
821
  my_xid getTransactionId();
 
822
 
823
823
  /**
824
824
    There is BUG#19630 where statement-based replication of stored
825
825
    functions/triggers with two auto_increment columns breaks.