68
69
if (!init_io_cache(cache,-1,cache_size,WRITE_CACHE,0L,0,
69
70
MYF(cache_myflags | MY_NABP)))
73
74
my_free(cache->dir, MYF(MY_ALLOW_ZERO_PTR));
74
75
my_free(cache->prefix,MYF(MY_ALLOW_ZERO_PTR));
78
79
/* Create the temporary file */
82
83
char name_buff[FN_REFLEN];
84
86
if ((cache->file=create_temp_file(name_buff, cache->dir, cache->prefix,
85
87
(O_RDWR | O_BINARY | O_TRUNC |
86
88
O_TEMPORARY | O_SHORT_LIVED),