~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

Refactor unused code

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
#include <drizzled/global_charset_info.h>
37
37
#include <drizzled/base.h>
38
 
#include <drizzled/discrete_interval.h>
39
38
#include <drizzled/error.h>
40
39
#include <drizzled/open_tables_state.h>
41
40
#include <drizzled/pthread_globals.h>
568
567
    (first_successful_insert_id_in_cur_stmt == 0), but storing "INSERT_ID=3"
569
568
    in the binlog is still needed; the list's minimum will contain 3.
570
569
  */
571
 
  Discrete_intervals_list auto_inc_intervals_in_cur_stmt_for_binlog;
572
 
  /** Used by replication and SET INSERT_ID */
573
 
  Discrete_intervals_list auto_inc_intervals_forced;
574
570
 
575
571
  uint64_t limit_found_rows;
576
572
  uint64_t options; /**< Bitmap of options */
896
892
  {
897
893
    return first_successful_insert_id_in_prev_stmt;
898
894
  }
899
 
  /**
900
 
    Used by Intvar_log_event::do_apply_event() and by "SET INSERT_ID=#"
901
 
    (mysqlbinlog). We'll soon add a variant which can take many intervals in
902
 
    argument.
903
 
  */
904
 
  inline void force_one_auto_inc_interval(uint64_t next_id)
905
 
  {
906
 
    auto_inc_intervals_forced.empty(); // in case of multiple SET INSERT_ID
907
 
    auto_inc_intervals_forced.append(next_id, UINT64_MAX, 0);
908
 
  }
909
895
 
910
896
  Session(plugin::Client *client_arg, catalog::Instance::shared_ptr catalog);
911
897
  virtual ~Session();