~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/placeholder.h

  • Committer: Brian Aker
  • Date: 2011-01-13 00:29:52 UTC
  • mto: (2077.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2078.
  • Revision ID: brian@tangent.org-20110113002952-x8j3jbbm629teuti
Create a shared form of the instance which is a bit more heavier weight then
the main instance class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
class Placeholder : public table::Concurrent
33
33
{
34
 
  TableShare private_share;
 
34
  instance::Shared private_share;
35
35
 
36
36
public:
37
37
  Placeholder(Session *session, TableIdentifier &identifier) :
38
38
    table::Concurrent(),
39
 
    private_share(identifier, identifier.getKey())
 
39
    private_share(identifier)
40
40
  {
41
41
    setShare(&private_share);
42
42
    in_use= session;
51
51
 
52
52
  void release(void)
53
53
  {
54
 
    TableShare::release(getMutableShare());
 
54
    table::instance::release(getMutableShare());
55
55
  }
56
56
};
57
57