~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/myisam.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

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