~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.h

  • Committer: Brian Aker
  • Date: 2009-05-21 18:09:02 UTC
  • mfrom: (1030.1.3 merge)
  • Revision ID: brian@gaz-20090521180902-5vrm1b0vbe5cby1j
MergeĀ forĀ Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  /** Category of this table. */
34
34
  enum_table_category table_category;
35
35
 
 
36
  uint32_t open_count;                  /* Number of tables in open list */
 
37
 
 
38
  /* The following is copied to each Table on OPEN */
 
39
  Field **field;
 
40
  Field **found_next_number_field;
 
41
  Field *timestamp_field;               /* Used only during open */
 
42
  KEY  *key_info;                       /* data of keys in database */
 
43
  uint  *blob_field;                    /* Index to blobs in Field arrray*/
 
44
 
36
45
  /* hash of field names (contains pointers to elements of field array) */
37
46
  HASH  name_hash;                      /* hash of field names */
38
47
  MEM_ROOT mem_root;
44
53
  TableShare *next,             /* Link to unused shares */
45
54
    **prev;
46
55
 
47
 
  /* The following is copied to each Table on OPEN */
48
 
  Field **field;
49
 
  Field **found_next_number_field;
50
 
  Field *timestamp_field;               /* Used only during open */
51
 
  KEY  *key_info;                       /* data of keys in database */
52
 
  uint  *blob_field;                    /* Index to blobs in Field arrray*/
53
56
 
54
57
  unsigned char *default_values;                /* row with default values */
55
58
  LEX_STRING comment;                   /* Comment about table */
73
76
  LEX_STRING normalized_path;           /* unpack_filename(path) */
74
77
  LEX_STRING connect_string;
75
78
 
76
 
  /*
77
 
     Set of keys in use, implemented as a Bitmap.
78
 
     Excludes keys disabled by ALTER Table ... DISABLE KEYS.
79
 
  */
80
 
  key_map keys_in_use;
81
 
  key_map keys_for_keyread;
82
 
  ha_rows min_rows, max_rows;           /* create information */
83
79
  uint32_t   avg_row_length;            /* create information */
84
80
  uint32_t   block_size;                   /* create information */
85
 
  uint32_t   version, mysql_version;
 
81
  uint32_t   mysql_version;
 
82
  uint32_t   version;
86
83
  uint32_t   timestamp_offset;          /* Set to offset+1 of record */
87
84
  uint32_t   reclength;                 /* Recordlength */
88
 
  uint32_t   stored_rec_length;         /* Stored record length
89
 
                                           (no generated-only virtual fields) */
 
85
  uint32_t   stored_rec_length;         /* Stored record length*/
 
86
  enum row_type row_type;               /* How rows are stored */
 
87
 
 
88
  ha_rows min_rows;             /* create information */
 
89
  ha_rows max_rows;             /* create information */
90
90
 
91
91
  StorageEngine *storage_engine;                        /* storage engine plugin */
92
92
  inline StorageEngine *db_type() const /* table_type for handler */
93
93
  {
94
94
    return storage_engine;
95
95
  }
96
 
  enum row_type row_type;               /* How rows are stored */
97
96
  enum tmp_table_type tmp_table;
98
97
  enum ha_choice page_checksum;
99
98
 
100
99
  uint32_t ref_count;       /* How many Table objects uses this */
101
 
  uint32_t open_count;                  /* Number of tables in open list */
102
100
  uint32_t blob_ptr_size;                       /* 4 or 8 */
103
101
  uint32_t key_block_size;                      /* create key_block_size, if used */
104
102
  uint32_t null_bytes;
130
128
  bool waiting_on_cond;                 /* Protection against free */
131
129
 
132
130
  /*
 
131
     Set of keys in use, implemented as a Bitmap.
 
132
     Excludes keys disabled by ALTER Table ... DISABLE KEYS.
 
133
  */
 
134
  key_map keys_in_use;
 
135
  key_map keys_for_keyread;
 
136
 
 
137
  /*
133
138
    Set share's table cache key and update its db and table name appropriately.
134
139
 
135
140
    SYNOPSIS