~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 16:36:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622163640-pwub8fpyqfdvqek4
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
  memory::Root& mem;
121
121
  memory::Root* mem_root; /**< Pointer to current memroot */
122
122
 
123
 
  memory::Root& getMemRoot0()
124
 
  {
125
 
    return *mem_root;
126
 
  }
127
 
 
128
123
  uint64_t getXaId()
129
124
  {
130
125
    return xa_id;
181
176
    It's needed because we do not save/restore Session::where normally during
182
177
    primary (non subselect) query execution.
183
178
  */
184
 
  static const char * const DEFAULT_WHERE;
 
179
  static const char* const DEFAULT_WHERE;
185
180
 
186
181
  memory::Root warn_root; /**< Allocation area for warnings and errors */
187
182
public:
192
187
    return client;
193
188
  }
194
189
 
195
 
  plugin::Scheduler *scheduler; /**< Pointer to scheduler object */
196
 
  void *scheduler_arg; /**< Pointer to the optional scheduler argument */
 
190
  plugin::Scheduler* scheduler; /**< Pointer to scheduler object */
197
191
 
198
 
  typedef boost::unordered_map< std::string, user_var_entry *, util::insensitive_hash, util::insensitive_equal_to> UserVars;
 
192
  typedef boost::unordered_map<std::string, user_var_entry*, util::insensitive_hash, util::insensitive_equal_to> UserVars;
199
193
 
200
194
private:
201
195
  typedef std::pair< UserVars::iterator, UserVars::iterator > UserVarsRange;
730
724
    return first_successful_insert_id_in_prev_stmt;
731
725
  }
732
726
 
733
 
  Session(plugin::Client *client_arg, boost::shared_ptr<catalog::Instance> catalog);
734
 
  virtual ~Session();
 
727
  Session(plugin::Client*, boost::shared_ptr<catalog::Instance>);
 
728
  ~Session();
735
729
 
736
730
  void cleanup();
737
731
  /**
812
806
   */
813
807
  bool authenticate();
814
808
  void run();
815
 
  static bool schedule(Session::shared_ptr&);
 
809
  static bool schedule(const Session::shared_ptr&);
816
810
  static void unlink(session_id_t&);
817
 
  static void unlink(Session::shared_ptr&);
 
811
  static void unlink(const Session::shared_ptr&);
818
812
 
819
813
  /*
820
814
    For enter_cond() / exit_cond() to work the mutex must be got before