~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/iocache.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-13 15:57:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110813155732-jrr1aq3gyeyxl9qv
Move flush() into iocache

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <drizzled/internal/iocache.h>
24
24
#include <drizzled/error.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
namespace internal
29
 
{
 
26
namespace drizzled {
 
27
namespace internal {
30
28
 
31
29
/*
32
30
** Open tempfile cached by io_cache_st
39
37
bool io_cache_st::open_cached_file(const char *dir_arg, const char *prefix_arg,
40
38
                      size_t cache_size_arg, myf cache_myflags)
41
39
{
42
 
  dir=   dir_arg ? strdup(dir_arg) : (char*) 0;
43
 
  prefix= (prefix_arg ? strdup(prefix_arg) : (char*) 0);
 
40
  dir= dir_arg ? strdup(dir_arg) : NULL;
 
41
  prefix= prefix_arg ? strdup(prefix_arg) : NULL;
44
42
 
45
43
  if ((dir == NULL) || (prefix == NULL))
46
44
    return true;