~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_placeholder.h

  • Committer: Brian Aker
  • Date: 2010-09-22 22:25:29 UTC
  • mto: (1791.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1792.
  • Revision ID: brian@tangent.org-20100922222529-geo4wggmu5ntqa5k
Current boost work (more conversion).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
namespace drizzled
27
27
{
28
28
 
29
 
namespace table
30
 
{
31
 
 
32
 
class Placeholder : public table::Concurrent
33
 
{
34
 
  instance::Shared private_share;
 
29
class TablePlaceholder : public Table
 
30
{
 
31
  TableShare private_share;
35
32
 
36
33
public:
37
 
  Placeholder(Session *session, identifier::Table &identifier) :
38
 
    table::Concurrent(),
39
 
    private_share(identifier)
 
34
  TablePlaceholder(Session *session, TableIdentifier &identifier) :
 
35
    Table(),
 
36
    private_share(identifier, identifier.getKey())
40
37
  {
 
38
    is_placeholder_created= true;
41
39
    setShare(&private_share);
42
40
    in_use= session;
43
41
 
44
42
    locked_by_name= true;
45
43
  }
46
 
 
47
 
  bool isPlaceHolder(void) const
48
 
  {
49
 
    return true;
50
 
  }
51
 
 
52
 
  void release(void)
53
 
  {
54
 
    table::instance::release(getMutableShare());
55
 
  }
56
44
};
57
45
 
58
 
} /* namespace table */
59
46
} /* namespace drizzled */
60
47
 
61
48
#endif /* DRIZZLED_TABLE_PLACEHOLDER_H */