~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/myisam.h

  • Committer: Monty Taylor
  • Date: 2009-07-17 17:13:52 UTC
  • mto: (1090.4.3 build-cleanup)
  • mto: This revision was merged to the branch mainline in revision 1098.
  • Revision ID: mordred@inaugust.com-20090717171352-fxcdsacvsmtzs4jv
Fixed manpage warnings. Make debian lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* This file should be included when using myisam_funktions */
17
17
 
18
 
#ifndef PLUGIN_MYISAM_MYISAM_H
19
 
#define PLUGIN_MYISAM_MYISAM_H
 
18
#ifndef _myisam_h
 
19
#define _myisam_h
20
20
 
21
21
#include <drizzled/key_map.h>
22
22
 
26
26
 
27
27
#include <drizzled/base.h>
28
28
#ifndef _m_ctype_h
29
 
#include "drizzled/charset_info.h"
 
29
#include <mystrings/m_ctype.h>
30
30
#endif
31
31
#ifndef _keycache_h
32
32
#include "keycache.h"
33
33
#endif
34
34
#include <plugin/myisam/my_handler.h>
35
 
#include "drizzled/internal/iocache.h"
 
35
#include <mysys/iocache.h>
36
36
 
37
37
/*
38
38
  Limit max keys according to HA_MAX_POSSIBLE_KEY
145
145
  uint  options;                        /* HA_OPTION_... used */
146
146
  int   errkey,                         /* With key was dupplicated on err */
147
147
        sortkey;                        /* clustered by this key */
148
 
  int   filenr;                         /* (uniq) filenr for datafile */
 
148
  File  filenr;                         /* (uniq) filenr for datafile */
149
149
  time_t create_time;                   /* When table was created */
150
150
  time_t check_time;
151
151
  time_t update_time;
253
253
extern char * myisam_log_filename;              /* Name of logfile */
254
254
extern uint32_t myisam_block_size;
255
255
extern uint32_t myisam_concurrent_insert;
 
256
extern bool myisam_flush,myisam_delay_key_write,myisam_single_user;
 
257
extern my_off_t myisam_max_temp_length;
256
258
extern uint32_t myisam_bulk_insert_tree_size; 
257
259
extern uint32_t data_pointer_size;
258
260
 
274
276
extern int mi_scan_init(struct st_myisam_info *file);
275
277
extern int mi_scan(struct st_myisam_info *file,unsigned char *buf);
276
278
extern int mi_rsame(struct st_myisam_info *file,unsigned char *record,int inx);
 
279
extern int mi_rsame_with_pos(struct st_myisam_info *file,unsigned char *record,
 
280
                             int inx, my_off_t pos);
277
281
extern int mi_update(struct st_myisam_info *file,const unsigned char *old,
278
282
                     unsigned char *new_record);
279
283
extern int mi_write(struct st_myisam_info *file,unsigned char *buff);
293
297
extern ha_rows mi_records_in_range(MI_INFO *info, int inx,
294
298
                                   key_range *min_key, key_range *max_key);
295
299
extern int mi_log(int activate_log);
 
300
extern int mi_is_changed(struct st_myisam_info *info);
296
301
extern int mi_delete_all_rows(struct st_myisam_info *info);
297
302
extern ulong _mi_calc_blob_length(uint32_t length , const unsigned char *pos);
298
303
extern uint32_t mi_get_pointer_length(uint64_t file_length, uint32_t def);
459
464
void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
460
465
                      uint64_t *unique, uint64_t *notnull,
461
466
                      uint64_t records);
462
 
int filecopy(MI_CHECK *param, int to,int from,my_off_t start,
 
467
int filecopy(MI_CHECK *param, File to,File from,my_off_t start,
463
468
             my_off_t length, const char *type);
464
469
int movepoint(MI_INFO *info,unsigned char *record,my_off_t oldpos,
465
470
              my_off_t newpos, uint32_t prot_key);
472
477
int mi_init_bulk_insert(MI_INFO *info, uint32_t cache_size, ha_rows rows);
473
478
void mi_flush_bulk_insert(MI_INFO *info, uint32_t inx);
474
479
void mi_end_bulk_insert(MI_INFO *info);
 
480
int mi_assign_to_key_cache(MI_INFO *info, KEY_CACHE *key_cache); 
 
481
void mi_change_key_cache(KEY_CACHE *old_key_cache,
 
482
                         KEY_CACHE *new_key_cache);
475
483
int mi_preload(MI_INFO *info, uint64_t key_map, bool ignore_leaves);
476
484
 
477
485
#ifdef  __cplusplus
478
486
}
479
487
#endif
480
 
#endif /* PLUGIN_MYISAM_MYISAM_H */
 
488
#endif