~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2009-05-06 06:59:53 UTC
  • mfrom: (1003.1.20 merge)
  • Revision ID: brian@gaz-20090506065953-4mrfmaty42e0ixpq
Merge handler cleanup (and ALTER TABLE cleanup) We go from 1 and 2 half
thought out systems... to just 1.

This should all be changed when we finish the StorageEngine rewrite

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                             int error, bool ignore_last_dupp_key_error);
71
71
 
72
72
class Table {
73
 
 
74
73
public:
 
74
  std::bitset<MAX_FIELDS> def_read_set, def_write_set, tmp_set; /* containers */
 
75
  std::bitset<MAX_FIELDS> *read_set, *write_set;                /* Active column sets */
 
76
 
75
77
  TableShare    *s;
76
78
  Table() {}                               /* Remove gcc warning */
77
79
 
162
164
  order_st *group;
163
165
  const char    *alias;                   /* alias or table name */
164
166
  unsigned char         *null_flags;
165
 
  std::bitset<MAX_FIELDS> def_read_set, def_write_set, tmp_set; /* containers */
166
 
  std::bitset<MAX_FIELDS> *read_set, *write_set;                /* Active column sets */
 
167
 
167
168
  /*
168
169
   The ID of the query that opened and is using this table. Has different
169
170
   meanings depending on the table type.
289
290
  void clear_column_bitmaps(void);
290
291
  void prepare_for_position(void);
291
292
  void mark_columns_used_by_index_no_reset(uint32_t index, std::bitset<MAX_FIELDS> *map);
 
293
  void mark_columns_used_by_index_no_reset(uint32_t index);
292
294
  void mark_columns_used_by_index(uint32_t index);
293
295
  void restore_column_maps_after_mark_index();
294
296
  void mark_auto_increment_column(void);
322
324
    write_set= &def_write_set;
323
325
  }
324
326
 
 
327
  /* Both of the below should go away once we can move this bit to the field objects */
 
328
  inline bool isReadSet(uint32_t index)
 
329
  {
 
330
    return read_set->test(index);
 
331
  }
 
332
 
 
333
  inline void setReadSet(uint32_t index)
 
334
  {
 
335
    read_set->set(index);
 
336
  }
 
337
 
 
338
  inline bool isWriteSet(uint32_t index)
 
339
  {
 
340
    return write_set->test(index);
 
341
  }
 
342
 
 
343
  inline void setWriteSet(uint32_t index)
 
344
  {
 
345
    write_set->set(index);
 
346
  }
 
347
 
325
348
  /* Is table open or should be treated as such by name-locking? */
326
349
  inline bool is_name_opened() { return db_stat || open_placeholder; }
327
350
  /*