~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/iocache.cc

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Open a temporary file and cache it with io_cache. Delete it on close */
17
17
 
18
 
#include "config.h"
 
18
#include <config.h>
19
19
 
20
 
#include "drizzled/internal/my_sys.h"
21
 
#include "drizzled/internal/m_string.h"
22
 
#include "drizzled/internal/my_static.h"
23
 
#include "drizzled/internal/iocache.h"
24
 
#include "drizzled/error.h"
 
20
#include <drizzled/internal/my_sys.h>
 
21
#include <drizzled/internal/m_string.h>
 
22
#include <drizzled/internal/my_static.h>
 
23
#include <drizzled/internal/iocache.h>
 
24
#include <drizzled/error.h>
25
25
 
26
26
namespace drizzled
27
27
{
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
  {