~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/keycache.h

Merge/fix in FAQ.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef _keycache_h
19
19
#define _keycache_h
20
20
 
21
 
#include <drizzled/global.h>
 
21
#include <my_global.h>
22
22
 
23
23
C_MODE_START
24
24
 
58
58
 
59
59
typedef struct st_key_cache
60
60
{
61
 
  bool key_cache_inited;
62
 
  bool in_resize;             /* true during resize operation             */
63
 
  bool resize_in_flush;       /* true during flush of resize operation    */
64
 
  bool can_be_used;           /* usage of cache for read/write is allowed */
 
61
  my_bool key_cache_inited;
 
62
  my_bool in_resize;             /* true during resize operation             */
 
63
  my_bool resize_in_flush;       /* true during flush of resize operation    */
 
64
  my_bool can_be_used;           /* usage of cache for read/write is allowed */
65
65
  size_t key_cache_mem_size;      /* specified size of the cache memory       */
66
66
  uint key_cache_block_size;     /* size of the page buffer of a cache block */
67
67
  ulong min_warm_blocks;         /* min number of warm blocks;               */
115
115
  uint64_t global_cache_read;      /* number of reads from files to cache   */
116
116
 
117
117
  int blocks;                   /* max number of blocks in the cache        */
118
 
  bool in_init;         /* Set to 1 in MySQL during init/resize     */
 
118
  my_bool in_init;              /* Set to 1 in MySQL during init/resize     */
119
119
} KEY_CACHE;
120
120
 
121
121
/* The default key cache */
142
142
                           uint block_length,int force_write);
143
143
extern int flush_key_blocks(KEY_CACHE *keycache,
144
144
                            int file, enum flush_type type);
145
 
extern void end_key_cache(KEY_CACHE *keycache, bool cleanup);
 
145
extern void end_key_cache(KEY_CACHE *keycache, my_bool cleanup);
146
146
 
147
147
/* Functions to handle multiple key caches */
148
 
extern bool multi_keycache_init(void);
 
148
extern my_bool multi_keycache_init(void);
149
149
extern void multi_keycache_free(void);
150
150
extern KEY_CACHE *multi_key_cache_search(uchar *key, uint length);
151
 
extern bool multi_key_cache_set(const uchar *key, uint length,
 
151
extern my_bool multi_key_cache_set(const uchar *key, uint length,
152
152
                                   KEY_CACHE *key_cache);
153
153
extern void multi_key_cache_change(KEY_CACHE *old_data,
154
154
                                   KEY_CACHE *new_data);