~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/temporary.h

  • Committer: Lee Bieber
  • Date: 2010-11-14 23:15:42 UTC
  • mfrom: (1929.1.42 warning-stack-frame)
  • Revision ID: kalebral@gmail.com-20101114231542-fnnu6ydd2p17n582
Merge Monty - fix bug 672372: some functions use > 32k stack

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class Temporary : public Table
31
31
{
32
 
  instance::Singular *_share; /**< Pointer to the shared metadata about the table */
 
32
  TableShare *_share; /**< Pointer to the shared metadata about the table */
33
33
 
34
34
public:
35
 
  Temporary(const identifier::Table::Type type_arg,
36
 
            const identifier::Table &identifier,
 
35
  Temporary(TableIdentifier::Type type_arg,
 
36
             TableIdentifier &identifier,
37
37
             char *path_arg, uint32_t path_length_arg) :
38
38
    Table()
39
39
  {
40
 
    _share= new instance::Singular(type_arg, identifier, path_arg, path_length_arg);
 
40
    _share= new TableShare(type_arg, identifier, path_arg, path_length_arg);
41
41
  }
42
42
 
43
43
  ~Temporary()
47
47
  virtual const TableShare *getShare() const { assert(_share); return _share; } /* Get rid of this long term */
48
48
  virtual TableShare *getMutableShare() { assert(_share); return _share; } /* Get rid of this long term */
49
49
  virtual bool hasShare() const { return _share ? true : false ; } /* Get rid of this long term */
50
 
  virtual void setShare(TableShare *new_share)
51
 
  {
52
 
    _share= static_cast<instance::Singular *>(new_share);
53
 
  }
 
50
  virtual void setShare(TableShare *new_share) { _share= new_share; } /* Get rid of this long term */
54
51
 
55
52
  void release(void)
56
53
  {