~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/csv/ha_tina.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  */
51
51
  off_t saved_data_file_length;
52
52
  pthread_mutex_t mutex;
53
 
  THR_LOCK lock;
 
53
  drizzled::THR_LOCK lock;
54
54
  bool update_file_opened;
55
55
  bool tina_write_opened;
56
56
  int meta_file;           /* Meta file we use */
57
57
  int tina_write_filedes;  /* File Cursor for readers */
58
58
  bool crashed;             /* Meta file is crashed */
59
 
  ha_rows rows_recorded;    /* Number of rows in tables */
 
59
  drizzled::ha_rows rows_recorded;    /* Number of rows in tables */
60
60
  uint32_t data_file_version;   /* Version of the data file used */
61
61
};
62
62
 
65
65
  off_t end;
66
66
};
67
67
 
68
 
class ha_tina: public Cursor
 
68
class ha_tina: public drizzled::Cursor
69
69
{
70
 
  THR_LOCK_DATA lock;      /* MySQL lock */
 
70
  drizzled::THR_LOCK_DATA lock;      /* MySQL lock */
71
71
  TinaShare *share;       /* Shared lock info */
72
72
  off_t current_position;  /* Current position in the file during a file scan */
73
73
  off_t next_position;     /* Next position in the file scan */
77
77
  Transparent_file *file_buff;
78
78
  int data_file;                   /* File Cursor for readers */
79
79
  int update_temp_file;
80
 
  String buffer;
 
80
  drizzled::String buffer;
81
81
  /*
82
82
    The chain contains "holes" in the file, occured because of
83
83
    deletes/updates. It is used in rnd_end() to get rid of them
98
98
  int init_data_file();
99
99
 
100
100
public:
101
 
  ha_tina(drizzled::plugin::StorageEngine &engine, TableShare &table_arg);
 
101
  ha_tina(drizzled::plugin::StorageEngine &engine, drizzled::TableShare &table_arg);
102
102
  ~ha_tina()
103
103
  {
104
104
    if (chain_alloced)
122
122
    (e.g. save number of records seen on full table scan and/or use file size
123
123
    as upper bound)
124
124
  */
125
 
  ha_rows estimate_rows_upper_bound() { return HA_POS_ERROR; }
 
125
  drizzled::ha_rows estimate_rows_upper_bound() { return HA_POS_ERROR; }
126
126
 
127
127
  int open(const char *name, int mode, uint32_t open_options);
128
128
  int close(void);
135
135
  int rnd_end();
136
136
  TinaShare *get_share(const char *table_name);
137
137
  int free_share();
138
 
  int repair(Session* session, HA_CHECK_OPT* check_opt);
 
138
  int repair(drizzled::Session* session, drizzled::HA_CHECK_OPT* check_opt);
139
139
  /* This is required for SQL layer to know that we support autorepair */
140
140
  void position(const unsigned char *record);
141
141
  int info(uint);