155
155
alloced_buffer(0)
158
int block_write(const void*, size_t, my_off_t);
158
159
void close_cached_file();
159
160
bool real_open_cached_file();
160
161
int end_io_cache();
161
int init_io_cache(int file, size_t cachesize,
162
enum cache_type type, my_off_t seek_offset,
163
bool use_async_io, myf cache_myflags);
162
int init_io_cache(int file, size_t cachesize, cache_type type, my_off_t seek_offset, bool use_async_io, myf cache_myflags);
164
163
void init_functions();
166
bool reinit_io_cache(enum cache_type type_arg,
167
my_off_t seek_offset,
165
bool reinit_io_cache(cache_type type_arg, my_off_t seek_offset, bool use_async_io, bool clear_cache);
170
166
void setup_io_cache();
171
167
bool open_cached_file(const char *dir, const char *prefix, size_t cache_size, myf cache_myflags);
172
168
int flush(int need_append_buffer_lock= 1);
175
181
typedef io_cache_st IO_CACHE; /* Used when cacheing files */
177
extern int _my_b_get(io_cache_st *info);
178
extern int _my_b_async_read(io_cache_st *info,unsigned char *Buffer,size_t Count);
179
extern int my_block_write(io_cache_st *info, const unsigned char *Buffer, size_t Count, my_off_t pos);
183
int _my_b_get(io_cache_st *info);
184
int _my_b_async_read(io_cache_st *info,unsigned char *Buffer,size_t Count);
180
186
} /* namespace internal */
181
187
} /* namespace drizzled */