~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 17:26:19 UTC
  • mto: (2245.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2246.
  • Revision ID: olafvdspek@gmail.com-20110321172619-0ba283mi3wykv4aq
Refactor Session::status_var

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/statistics_variables.h>
 
45
// #include <drizzled/statistics_variables.h>
46
46
#include <drizzled/system_variables.h>
47
47
#include <drizzled/visibility.h>
48
48
#include <drizzled/util/find_ptr.h>
99
99
class Table_ident;
100
100
class Time_zone;
101
101
class select_result;
 
102
class system_status_var;
102
103
class user_var_entry;
103
104
struct Ha_data;
104
105
 
136
137
 
137
138
class DRIZZLED_API Session : public Open_tables_state
138
139
{
 
140
private:
 
141
  class impl_c;
 
142
 
 
143
  boost::scoped_ptr<impl_c> impl_;
139
144
public:
140
145
  // Plugin storage in Session.
141
146
  typedef boost::shared_ptr<Session> shared_ptr;
324
329
 
325
330
  drizzle_system_variables variables; /**< Mutable local variables local to the session */
326
331
  enum_tx_isolation getTxIsolation();
327
 
  system_status_var status_var;
 
332
  system_status_var& status_var;
328
333
 
329
334
  THR_LOCK_INFO lock_info; /**< Locking information for this session */
330
335
  THR_LOCK_OWNER main_lock_id; /**< To use for conventional queries */
1439
1444
 
1440
1445
  bool arg_of_last_insert_id_function; // Tells if LAST_INSERT_ID(#) was called for the current statement
1441
1446
private:
1442
 
        class impl_c;
1443
 
 
1444
1447
  bool free_cached_table(boost::mutex::scoped_lock &scopedLock);
1445
1448
  drizzled::util::Storable* getProperty0(const std::string&);
1446
1449
  void setProperty0(const std::string&, drizzled::util::Storable*);
1451
1454
    return not getrusage(RUSAGE_THREAD, &usage);
1452
1455
  }
1453
1456
 
1454
 
  boost::scoped_ptr<impl_c> impl_;
1455
1457
  catalog::Instance::shared_ptr _catalog;
1456
1458
 
1457
1459
  /** Pointers to memory managed by the ReplicationServices component */