~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include <drizzled/plugin/info_schema_table.h>
45
45
#include <drizzled/message/schema.pb.h>
46
46
#include <drizzled/plugin/client.h>
47
 
#include <mysys/cached_directory.h>
 
47
#include <drizzled/cached_directory.h>
48
48
#include "drizzled/sql_table.h"
49
49
#include "drizzled/global_charset_info.h"
50
50
#include "drizzled/pthread_globals.h"
 
51
#include "drizzled/internal/m_string.h"
 
52
#include "drizzled/internal/my_sys.h"
51
53
 
52
54
#include <sys/stat.h>
53
55
 
139
141
 
140
142
  if (directory.fail())
141
143
  {
142
 
    my_errno= directory.getError();
143
 
    my_error(ER_CANT_READ_DIR, MYF(0), path, my_errno);
 
144
    errno= directory.getError();
 
145
    my_error(ER_CANT_READ_DIR, MYF(0), path, errno);
144
146
 
145
147
    return true;
146
148
  }
163
165
 
164
166
    if (stat(entry->filename.c_str(), &entry_stat))
165
167
    {
166
 
      my_errno= errno;
167
 
      my_error(ER_CANT_GET_STAT, MYF(0), entry->filename.c_str(), my_errno);
 
168
      errno= errno;
 
169
      my_error(ER_CANT_GET_STAT, MYF(0), entry->filename.c_str(), errno);
168
170
      return(true);
169
171
    }
170
172
 
706
708
    return (void*) sql_alloc((uint32_t) size);
707
709
  }
708
710
  static void operator delete(void *, size_t)
709
 
  { TRASH(ptr, size); }
 
711
  { }
710
712
 
711
 
  my_thread_id thread_id;
 
713
  uint64_t thread_id;
712
714
  time_t start_time;
713
715
  uint32_t   command;
714
716
  const char *user,*host,*db,*proc_info,*state_info;