~brianaker/drizzle/bug786515-trunk

« back to all changes in this revision

Viewing changes to drizzled/internal/iocache.cc

  • Committer: Mark Atwood
  • Date: 2011-04-29 17:30:52 UTC
  • mfrom: (2296.1.2 local-fix)
  • Revision ID: me@mark.atwood.name-20110429173052-3hg0h8rxphrasm0s
mergeĀ ~brianaker/drizzle/iocached-rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
{
30
30
 
31
31
/*
32
 
** Open tempfile cached by st_io_cache
 
32
** Open tempfile cached by io_cache_st
33
33
** Should be used when no seeks are done (only reinit_io_buff)
34
34
** Return false if cache is inited ok
35
 
** The actual file is created when the st_io_cache buffer gets filled
 
35
** The actual file is created when the io_cache_st buffer gets filled
36
36
** If dir is not given, use TMPDIR.
37
37
*/
38
38
 
39
 
bool st_io_cache::open_cached_file(const char *dir_arg, const char *prefix_arg,
 
39
bool io_cache_st::open_cached_file(const char *dir_arg, const char *prefix_arg,
40
40
                      size_t cache_size_arg, myf cache_myflags)
41
41
{
42
42
  dir=   dir_arg ? strdup(dir_arg) : (char*) 0;
59
59
 
60
60
/* Create the temporary file */
61
61
 
62
 
bool st_io_cache::real_open_cached_file()
 
62
bool io_cache_st::real_open_cached_file()
63
63
{
64
64
  char name_buff[FN_REFLEN];
65
65
 
73
73
}
74
74
 
75
75
 
76
 
void st_io_cache::close_cached_file()
 
76
void io_cache_st::close_cached_file()
77
77
{
78
78
  if (my_b_inited(this))
79
79
  {