~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/myisam.h

  • Committer: Joe Daly
  • Date: 2010-05-21 02:16:56 UTC
  • mto: This revision was merged to the branch mainline in revision 1555.
  • Revision ID: skinny.moey@gmail.com-20100521021656-bx6piitfh77jnl28
add statistics_variables.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* This file should be included when using myisam_funktions */
17
17
 
18
18
#ifndef PLUGIN_MYISAM_MYISAM_H
19
19
#define PLUGIN_MYISAM_MYISAM_H
20
20
 
21
 
#include <drizzled/identifier.h>
22
 
 
23
21
#include <drizzled/key_map.h>
24
22
 
25
23
#include <drizzled/base.h>
26
24
#ifndef _m_ctype_h
27
 
#include <drizzled/charset_info.h>
 
25
#include "drizzled/charset_info.h"
28
26
#endif
29
27
#ifndef _keycache_h
30
28
#include "keycache.h"
31
29
#endif
32
30
#include <plugin/myisam/my_handler.h>
33
 
#include <drizzled/internal/iocache.h>
 
31
#include "drizzled/internal/iocache.h"
34
32
 
35
33
/*
36
34
  Limit max keys according to HA_MAX_POSSIBLE_KEY
164
162
  uint32_t old_options;
165
163
  uint8_t language;
166
164
  bool with_auto_increment;
167
 
 
168
 
  st_mi_create_info():
169
 
    index_file_name(0),
170
 
    data_file_name(0),
171
 
    max_rows(0),
172
 
    reloc_rows(0),
173
 
    auto_increment(0),
174
 
    data_file_length(0),
175
 
    key_file_length(0),
176
 
    old_options(0),
177
 
    language(0),
178
 
    with_auto_increment(0)
179
 
  { }
180
 
 
181
165
} MI_CREATE_INFO;
182
166
 
183
167
struct st_myisam_info;                  /* For referense */
277
261
 
278
262
extern int mi_close(struct st_myisam_info *file);
279
263
extern int mi_delete(struct st_myisam_info *file,const unsigned char *buff);
280
 
extern struct st_myisam_info *mi_open(const drizzled::identifier::Table &identifier,
281
 
                                      int mode,
 
264
extern struct st_myisam_info *mi_open(const char *name,int mode,
282
265
                                      uint32_t wait_if_locked);
283
266
extern int mi_panic(enum drizzled::ha_panic_function function);
284
267
extern int mi_rfirst(struct st_myisam_info *file,unsigned char *buf,int inx);
465
448
int mi_sort_index(MI_CHECK *param, register MI_INFO *info, char * name);
466
449
int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
467
450
                      const char * name, int rep_quick);
 
451
int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
 
452
                      const char * name, int rep_quick);
468
453
int change_to_newfile(const char * filename, const char * old_ext,
469
454
                      const char * new_ext, uint32_t raid_chunks,
470
455
                      drizzled::myf myflags);
481
466
              drizzled::internal::my_off_t newpos, uint32_t prot_key);
482
467
int write_data_suffix(SORT_INFO *sort_info, bool fix_datafile);
483
468
int test_if_almost_full(MI_INFO *info);
 
469
int recreate_table(MI_CHECK *param, MI_INFO **org_info, char *filename);
484
470
bool mi_test_if_sort_rep(MI_INFO *info, drizzled::ha_rows rows, uint64_t key_map,
485
471
                            bool force);
486
472