~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/myisam.h

  • Committer: Mark Atwood
  • Date: 2011-08-09 01:21:52 UTC
  • mfrom: (2380.1.2 drizzle-autoconf)
  • Revision ID: me@mark.atwood.name-20110809012152-zxq2dgan8e6nsvse
mergeĀ lp:~brianaker/drizzle/autoreconf

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
#pragma once
20
19
 
21
 
#include "drizzled/identifier.h"
 
20
#include <drizzled/common_fwd.h>
22
21
 
23
22
#include <drizzled/key_map.h>
24
23
 
25
24
#include <drizzled/base.h>
26
 
#ifndef _m_ctype_h
27
 
#include "drizzled/charset_info.h"
28
 
#endif
29
25
#ifndef _keycache_h
30
26
#include "keycache.h"
31
27
#endif
32
28
#include <plugin/myisam/my_handler.h>
33
 
#include "drizzled/internal/iocache.h"
 
29
#include <drizzled/internal/iocache.h>
34
30
 
35
31
/*
36
32
  Limit max keys according to HA_MAX_POSSIBLE_KEY
120
116
                            (_to_)= (mi_get_mask_all_keys_active(_maxkeys_) & \
121
117
                                     (_from_))
122
118
 
 
119
typedef uint32_t ha_checksum;
 
120
 
123
121
        /* Param to/from mi_status */
124
 
 
125
122
typedef struct st_mi_isaminfo           /* Struct from h_info */
126
123
{
127
124
  drizzled::ha_rows records;                    /* Records in database */
332
329
 
333
330
#define T_AUTO_INC              1
334
331
#define T_AUTO_REPAIR           2              /* QQ to be removed */
335
 
#define T_BACKUP_DATA           4
336
332
#define T_CALC_CHECKSUM         8
337
333
#define T_CHECK                 16             /* QQ to be removed */
338
334
#define T_CHECK_ONLY_CHANGED    32             /* QQ to be removed */
406
402
  drizzled::internal::my_off_t new_file_pos,key_file_blocks;
407
403
  drizzled::internal::my_off_t keydata,totaldata,key_blocks,start_check_pos;
408
404
  drizzled::ha_rows total_records,total_deleted;
409
 
  drizzled::internal::ha_checksum record_checksum,glob_crc;
 
405
  ha_checksum record_checksum,glob_crc;
410
406
  uint64_t use_buffers;
411
407
  size_t read_buffer_length, write_buffer_length,
412
408
         sort_buffer_length, sort_key_blocks;
419
415
  char temp_filename[FN_REFLEN],*isam_file_name;
420
416
  int tmpfile_createflag;
421
417
  drizzled::myf myf_rw;
422
 
  drizzled::internal::IO_CACHE read_cache;
 
418
  drizzled::internal::io_cache_st read_cache;
423
419
 
424
420
  /*
425
421
    The next two are used to collect statistics, see update_key_parts for
428
424
  uint64_t unique_count[MI_MAX_KEY_SEG+1];
429
425
  uint64_t notnull_count[MI_MAX_KEY_SEG+1];
430
426
 
431
 
  drizzled::internal::ha_checksum key_crc[HA_MAX_POSSIBLE_KEY];
 
427
  ha_checksum key_crc[HA_MAX_POSSIBLE_KEY];
432
428
  ulong rec_per_key_part[MI_MAX_KEY_SEG*HA_MAX_POSSIBLE_KEY];
433
429
  void *session;
434
430
  const char *db_name, *table_name;
489
485
void mi_end_bulk_insert(MI_INFO *info);
490
486
int mi_preload(MI_INFO *info, uint64_t key_map, bool ignore_leaves);
491
487
 
492
 
#endif /* PLUGIN_MYISAM_MYISAM_H */