~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/myisam.h

Removed global.h. Fixed all the headers.
Also fixed headers to allow for some out of tree builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
{
129
129
  ha_rows records;                      /* Records in database */
130
130
  ha_rows deleted;                      /* Deleted records in database */
131
 
  my_off_t recpos;                      /* Pos for last used record */
132
 
  my_off_t newrecpos;                   /* Pos if we write new record */
133
 
  my_off_t dupp_key_pos;                /* Position to record with dupp key */
134
 
  my_off_t data_file_length,            /* Length of data file */
 
131
  uint64_t recpos;                      /* Pos for last used record */
 
132
  uint64_t newrecpos;                   /* Pos if we write new record */
 
133
  uint64_t dupp_key_pos;                /* Position to record with dupp key */
 
134
  uint64_t data_file_length,            /* Length of data file */
135
135
           max_data_file_length,
136
136
           index_file_length,
137
137
           max_index_file_length,
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
 
  File  filenr;                         /* (uniq) filenr for datafile */
 
148
  int   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;
270
270
extern int mi_rnext(struct st_myisam_info *file,unsigned char *buf,int inx);
271
271
extern int mi_rnext_same(struct st_myisam_info *info, unsigned char *buf);
272
272
extern int mi_rprev(struct st_myisam_info *file,unsigned char *buf,int inx);
273
 
extern int mi_rrnd(struct st_myisam_info *file,unsigned char *buf, my_off_t pos);
 
273
extern int mi_rrnd(struct st_myisam_info *file,unsigned char *buf, uint64_t pos);
274
274
extern int mi_scan_init(struct st_myisam_info *file);
275
275
extern int mi_scan(struct st_myisam_info *file,unsigned char *buf);
276
276
extern int mi_rsame(struct st_myisam_info *file,unsigned char *record,int inx);
277
277
extern int mi_update(struct st_myisam_info *file,const unsigned char *old,
278
278
                     unsigned char *new_record);
279
279
extern int mi_write(struct st_myisam_info *file,unsigned char *buff);
280
 
extern my_off_t mi_position(struct st_myisam_info *file);
 
280
extern uint64_t mi_position(struct st_myisam_info *file);
281
281
extern int mi_status(struct st_myisam_info *info, MI_ISAMINFO *x, uint32_t flag);
282
282
extern int mi_lock_database(struct st_myisam_info *file,int lock_type);
283
283
extern int mi_create(const char *name,uint32_t keys,MI_KEYDEF *keydef,
384
384
  uint64_t max_data_file_length;
385
385
  uint64_t keys_in_use;
386
386
  uint64_t max_record_length;
387
 
  my_off_t search_after_block;
388
 
  my_off_t new_file_pos,key_file_blocks;
389
 
  my_off_t keydata,totaldata,key_blocks,start_check_pos;
 
387
  uint64_t search_after_block;
 
388
  uint64_t new_file_pos,key_file_blocks;
 
389
  uint64_t keydata,totaldata,key_blocks,start_check_pos;
390
390
  ha_rows total_records,total_deleted;
391
391
  ha_checksum record_checksum,glob_crc;
392
392
  uint64_t use_buffers;
420
420
 
421
421
typedef struct st_sort_info
422
422
{
423
 
  my_off_t filelength,dupp,buff_length;
 
423
  uint64_t filelength,dupp,buff_length;
424
424
  ha_rows max_records;
425
425
  uint32_t current_key, total_keys;
426
426
  myf myf_rw;
459
459
void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
460
460
                      uint64_t *unique, uint64_t *notnull,
461
461
                      uint64_t records);
462
 
int filecopy(MI_CHECK *param, File to,File from,my_off_t start,
463
 
             my_off_t length, const char *type);
464
 
int movepoint(MI_INFO *info,unsigned char *record,my_off_t oldpos,
465
 
              my_off_t newpos, uint32_t prot_key);
 
462
int filecopy(MI_CHECK *param, int to,int from,uint64_t start,
 
463
             uint64_t length, const char *type);
 
464
int movepoint(MI_INFO *info,unsigned char *record,uint64_t oldpos,
 
465
              uint64_t newpos, uint32_t prot_key);
466
466
int write_data_suffix(SORT_INFO *sort_info, bool fix_datafile);
467
467
int test_if_almost_full(MI_INFO *info);
468
468
int recreate_table(MI_CHECK *param, MI_INFO **org_info, char *filename);