~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/cache.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-02 12:51:57 UTC
  • mto: (2157.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2158.
  • Revision ID: andrew@linuxjedi.co.uk-20110202125157-r6thh7ox4g9l90ec
Make transaction_message_threshold a read-only global variable instead of a per-session variable
Make replication_dictionary column lengths use transation_message_threshold

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <list>
24
24
 
25
 
#include <drizzled/visibility.h>
 
25
#include "drizzled/session.h"
 
26
#include "drizzled/visibility.h"
26
27
 
27
28
namespace drizzled
28
29
{
34
35
 
35
36
class DRIZZLED_API Cache 
36
37
{
37
 
  typedef boost::shared_ptr<drizzled::Session> session_shared_ptr;
38
38
public:
39
 
  typedef std::list<session_shared_ptr> list;
 
39
  typedef std::list<Session::shared_ptr> list;
40
40
 
41
41
  Cache() :
42
42
    _ready_to_exit(false)
68
68
  void shutdownFirst();
69
69
  void shutdownSecond();
70
70
 
71
 
  void erase(session_shared_ptr&);
 
71
  void erase(Session::shared_ptr&);
72
72
  size_t count();
73
 
  void insert(session_shared_ptr &arg);
 
73
  void insert(Session::shared_ptr &arg);
74
74
 
75
 
  session_shared_ptr find(const session_id_t &id);
 
75
  Session::shared_ptr find(const session_id_t &id);
76
76
 
77
77
private:
78
78
  bool volatile _ready_to_exit;