~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/ha_myisam.h

Merging trunk changes from over weekend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
/* class for the the myisam handler */
22
22
 
23
23
#include <myisam.h>
24
 
#include <ft_global.h>
25
24
 
26
25
#define HA_RECOVER_NONE         0       /* No automatic recover */
27
26
#define HA_RECOVER_DEFAULT      1       /* Automatic recover active */
55
54
  uint64_t table_flags() const { return int_table_flags; }
56
55
  int index_init(uint idx, bool sorted);
57
56
  int index_end();
58
 
  ulong index_flags(uint inx, uint part, bool all_parts) const
 
57
  uint32_t index_flags(uint inx, uint part, bool all_parts) const
59
58
  {
60
59
    return ((table_share->key_info[inx].algorithm == HA_KEY_ALG_FULLTEXT) ?
61
60
            0 : HA_READ_NEXT | HA_READ_PREV | HA_READ_RANGE |
83
82
  int index_first(uchar * buf);
84
83
  int index_last(uchar * buf);
85
84
  int index_next_same(uchar *buf, const uchar *key, uint keylen);
86
 
  int ft_init()
87
 
  {
88
 
    if (!ft_handler)
89
 
      return 1;
90
 
    ft_handler->please->reinit_search(ft_handler);
91
 
    return 0;
92
 
  }
93
 
  FT_INFO *ft_init_ext(uint flags, uint inx,String *key)
94
 
  {
95
 
    return ft_init_search(flags,file,inx,
96
 
                          (uchar *)key->ptr(), key->length(), key->charset(),
97
 
                          table->record[0]);
98
 
  }
99
 
  int ft_read(uchar *buf);
100
85
  int rnd_init(bool scan);
101
86
  int rnd_next(uchar *buf);
102
87
  int rnd_pos(uchar * buf, uchar *pos);
104
89
  void position(const uchar *record);
105
90
  int info(uint);
106
91
  int extra(enum ha_extra_function operation);
107
 
  int extra_opt(enum ha_extra_function operation, ulong cache_size);
 
92
  int extra_opt(enum ha_extra_function operation, uint32_t cache_size);
108
93
  int reset(void);
109
94
  int external_lock(THD *thd, int lock_type);
110
95
  int delete_all_rows(void);
132
117
  bool auto_repair() const { return myisam_recover_options != 0; }
133
118
  int optimize(THD* thd, HA_CHECK_OPT* check_opt);
134
119
  int assign_to_keycache(THD* thd, HA_CHECK_OPT* check_opt);
135
 
  int preload_keys(THD* thd, HA_CHECK_OPT* check_opt);
136
120
  bool check_if_incompatible_data(HA_CREATE_INFO *info, uint table_changes);
137
121
#ifdef HAVE_QUERY_CACHE
138
122
  my_bool register_query_cache_table(THD *thd, char *table_key,