~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2009-04-29 01:45:36 UTC
  • mfrom: (1000.1.6 merge)
  • Revision ID: brian@gaz-20090429014536-pwu5m8ug6n8fvh68
Merge refactoring (mainly around TABLE_SHARE... one step forward...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
class Table {
73
73
 
74
74
public:
75
 
  TABLE_SHARE   *s;
 
75
  TableShare    *s;
76
76
  Table() {}                               /* Remove gcc warning */
77
77
 
78
78
  /* SHARE methods */
79
 
  inline TABLE_SHARE *getShare() { return s; } /* Get rid of this long term */
80
 
  inline void setShare(TABLE_SHARE *new_share) { s= new_share; } /* Get rid of this long term */
 
79
  inline TableShare *getShare() { return s; } /* Get rid of this long term */
 
80
  inline void setShare(TableShare *new_share) { s= new_share; } /* Get rid of this long term */
81
81
  inline uint32_t sizeKeys() { return s->keys; }
82
82
  inline uint32_t sizeFields() { return s->fields; }
83
83
  inline uint32_t getRecordLength() { return s->reclength; }
134
134
    A set of keys that can be used in the query that references this
135
135
    table.
136
136
 
137
 
    All indexes disabled on the table's TABLE_SHARE (see Table::s) will be
 
137
    All indexes disabled on the table's TableShare (see Table::s) will be
138
138
    subtracted from this set upon instantiation. Thus for any Table t it holds
139
139
    that t.keys_in_use_for_query is a subset of t.s.keys_in_use. Generally we
140
140
    must not introduce any new keys here (see setup_tables).
246
246
  /*
247
247
    Placeholder for an open table which prevents other connections
248
248
    from taking name-locks on this table. Typically used with
249
 
    TABLE_SHARE::version member to take an exclusive name-lock on
 
249
    TableShare::version member to take an exclusive name-lock on
250
250
    this table name -- a name lock that not only prevents other
251
251
    threads from opening the table, but also blocks other name
252
252
    locks. This is achieved by: