~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.h

  • Committer: Brian Aker
  • Date: 2009-04-28 21:46:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1001.
  • Revision ID: brian@gaz-20090428214657-8vxn7n9dc6epb3zy
Renamed TABLE_SHARE to TableShare

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
  This class is shared between different table objects. There is one
25
25
  instance of table share per one table in the database.
26
26
*/
27
 
class TABLE_SHARE
 
27
class TableShare
28
28
{
29
29
public:
30
 
  TABLE_SHARE() {}                    /* Remove gcc warning */
 
30
  TableShare() {}                    /* Remove gcc warning */
31
31
 
32
32
  /** Category of this table. */
33
33
  enum_table_category table_category;
40
40
  TYPELIB *intervals;                   /* pointer to interval info */
41
41
  pthread_mutex_t mutex;                /* For locking the share  */
42
42
  pthread_cond_t cond;                  /* To signal that share is ready */
43
 
  TABLE_SHARE *next,            /* Link to unused shares */
 
43
  TableShare *next,             /* Link to unused shares */
44
44
    **prev;
45
45
 
46
46
  /* The following is copied to each Table on OPEN */
144
144
    NOTES
145
145
      Since 'key_buff' buffer will be referenced from share it should has same
146
146
      life-time as share itself.
147
 
      This method automatically ensures that TABLE_SHARE::table_name/db have
 
147
      This method automatically ensures that TableShare::table_name/db have
148
148
      appropriate values by using table cache key as their source.
149
149
  */
150
150