~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/keycache.h

  • Committer: Brian Aker
  • Date: 2010-01-18 19:39:12 UTC
  • mfrom: (1251.2.9 working)
  • Revision ID: brian@gaz-20100118193912-rf7ncdnrhvowyfo6
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
  bool resize_in_flush;       /* true during flush of resize operation    */
66
66
  bool can_be_used;           /* usage of cache for read/write is allowed */
67
67
  uint32_t hash_entries;             /* max number of entries in the hash table  */
68
 
  size_t key_cache_mem_size;      /* specified size of the cache memory       */
 
68
  uint32_t key_cache_mem_size;      /* specified size of the cache memory       */
69
69
  uint32_t key_cache_block_size;     /* size of the page buffer of a cache block */
70
70
  int disk_blocks;               /* max number of blocks in the cache        */
71
71
  ulong min_warm_blocks;         /* min number of warm blocks;               */
104
104
    initializing the key cache.
105
105
  */
106
106
 
107
 
  uint64_t param_buff_size;    /* size the memory allocated for the cache  */
 
107
  uint32_t param_buff_size;    /* size the memory allocated for the cache  */
108
108
  uint32_t param_block_size;   /* size of the blocks in the key cache      */
109
109
  uint32_t param_division_limit; /* min. percentage of warm blocks           */
110
110
  uint32_t param_age_threshold;    /* determines when hot block is downgraded  */
124
124
extern KEY_CACHE dflt_key_cache_var, *dflt_key_cache;
125
125
 
126
126
extern int init_key_cache(KEY_CACHE *keycache, uint32_t key_cache_block_size,
127
 
                          size_t use_mem, uint32_t division_limit,
 
127
                          uint32_t use_mem, uint32_t division_limit,
128
128
                          uint32_t age_threshold);
129
129
extern int resize_key_cache(KEY_CACHE *keycache, uint32_t key_cache_block_size,
130
 
                            size_t use_mem, uint32_t division_limit,
 
130
                            uint32_t use_mem, uint32_t division_limit,
131
131
                            uint32_t age_threshold);
132
132
extern unsigned char *key_cache_read(KEY_CACHE *keycache,
133
133
                            int file, my_off_t filepos, int level,