~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/csv/ha_tina.cc

  • Committer: Brian Aker
  • Date: 2011-02-17 10:09:00 UTC
  • mfrom: (2173.2.1 clean-include-usuage)
  • Revision ID: brian@tangent.org-20110217100900-4tpuxxzdl1sj00sh
Merge Monty for headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
 -Brian
42
42
*/
43
 
#include "config.h"
 
43
#include <config.h>
44
44
#include <drizzled/field.h>
45
45
#include <drizzled/field/blob.h>
46
46
#include <drizzled/error.h>
47
47
#include <drizzled/table.h>
48
48
#include <drizzled/session.h>
49
 
#include "drizzled/internal/my_sys.h"
 
49
#include <drizzled/internal/my_sys.h>
50
50
 
51
51
#include "ha_tina.h"
52
52
 
63
63
/*
64
64
  unsigned char + unsigned char + uint64_t + uint64_t + uint64_t + uint64_t + unsigned char
65
65
*/
66
 
#define META_BUFFER_SIZE sizeof(unsigned char) + sizeof(unsigned char) + sizeof(uint64_t) \
67
 
  + sizeof(uint64_t) + sizeof(uint64_t) + sizeof(uint64_t) + sizeof(unsigned char)
68
 
#define TINA_CHECK_HEADER 254 // The number we use to determine corruption
69
 
#define BLOB_MEMROOT_ALLOC_SIZE 8192
 
66
static const int META_BUFFER_SIZE = sizeof(unsigned char) + sizeof(unsigned char) + sizeof(uint64_t)
 
67
  + sizeof(uint64_t) + sizeof(uint64_t) + sizeof(uint64_t) + sizeof(unsigned char);
 
68
static const int TINA_CHECK_HEADER = 254; // The number we use to determine corruption
 
69
static const int BLOB_MEMROOT_ALLOC_SIZE = 8192;
70
70
 
71
71
/* The file extension */
72
 
#define CSV_EXT ".CSV"               // The data file
73
 
#define CSN_EXT ".CSN"               // Files used during repair and update
74
 
#define CSM_EXT ".CSM"               // Meta file
 
72
static const char* CSV_EXT = ".CSV"               // The data file
 
73
static const char* CSN_EXT = ".CSN"               // Files used during repair and update
 
74
static const char* CSM_EXT = ".CSM"               // Meta file
75
75
 
76
76
 
77
77
static int read_meta_file(int meta_file, ha_rows *rows);