~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Monty Taylor
  • Date: 2009-01-29 20:42:53 UTC
  • mfrom: (819 testable)
  • mto: (779.3.19 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090129204253-9kcnyaxldhy7fyym
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
extern char empty_c_string[1];
47
47
extern const char **errmesg;
48
48
 
49
 
#define TC_LOG_PAGE_SIZE   8192
50
 
#define TC_LOG_MIN_SIZE    (3*TC_LOG_PAGE_SIZE)
51
 
 
52
49
#define TC_HEURISTIC_RECOVER_COMMIT   1
53
50
#define TC_HEURISTIC_RECOVER_ROLLBACK 2
54
51
extern uint32_t tc_heuristic_recover;
55
52
 
56
 
#define RP_LOCK_LOG_IS_ALREADY_LOCKED 1
57
 
#define RP_FORCE_ROTATE               2
58
 
 
59
53
/*
60
54
  The COPY_INFO structure is used by INSERT/REPLACE code.
61
55
  The schema of the row counting by the INSERT/INSERT ... ON DUPLICATE KEY
1145
1139
    uint64_t uint64_t_value;
1146
1140
  } sys_var_tmp;
1147
1141
 
1148
 
  struct {
1149
 
    /*
1150
 
      If true, drizzle_bin_log::write(Log_event) call will not write events to
1151
 
      binlog, and maintain 2 below variables instead (use
1152
 
      drizzle_bin_log.start_union_events to turn this on)
1153
 
    */
1154
 
    bool do_union;
1155
 
    /*
1156
 
      If true, at least one drizzle_bin_log::write(Log_event) call has been
1157
 
      made after last drizzle_bin_log.start_union_events() call.
1158
 
    */
1159
 
    bool unioned_events;
1160
 
    /*
1161
 
      If true, at least one drizzle_bin_log::write(Log_event e), where
1162
 
      e.cache_stmt == true call has been made after last
1163
 
      drizzle_bin_log.start_union_events() call.
1164
 
    */
1165
 
    bool unioned_events_trans;
1166
 
 
1167
 
    /*
1168
 
      'queries' (actually SP statements) that run under inside this binlog
1169
 
      union have session->query_id >= first_query_id.
1170
 
    */
1171
 
    query_id_t first_query_id;
1172
 
  } binlog_evt_union;
1173
 
 
1174
1142
  /**
1175
1143
    Character input stream consumed by the lexical analyser,
1176
1144
    used during parsing.
1472
1440
  session->main_da.set_eof_status(session);
1473
1441
}
1474
1442
 
1475
 
#define tmp_disable_binlog(A)       \
1476
 
  {uint64_t tmp_disable_binlog__save_options= (A)->options; \
1477
 
  (A)->options&= ~OPTION_BIN_LOG
1478
 
 
1479
 
#define reenable_binlog(A)   (A)->options= tmp_disable_binlog__save_options;}
1480
 
 
1481
 
 
1482
1443
/*
1483
1444
  Used to hold information about file and file structure in exchange
1484
1445
  via non-DB file (...INTO OUTFILE..., ...LOAD DATA...)