~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/csv/ha_tina.h

Merge of trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  TinaShare(const TinaShare &);
37
37
  TinaShare& operator=(const TinaShare &);
38
38
public:
39
 
  explicit TinaShare(const char *name);
 
39
  explicit TinaShare(const std::string &name);
40
40
  ~TinaShare();
41
41
 
42
42
  std::string table_name;
43
 
  char data_file_name[FN_REFLEN];
 
43
  std::string data_file_name;
44
44
  uint32_t use_count;
45
45
  /*
46
46
    Here we save the length of the file for readers. This is updated by
107
107
  /* The next method will never be called */
108
108
  virtual bool fast_key_read() { return 1;}
109
109
  /*
110
 
    TODO: return actual upper bound of number of records in the table.
 
110
    @TODO return actual upper bound of number of records in the table.
111
111
    (e.g. save number of records seen on full table scan and/or use file size
112
112
    as upper bound)
113
113
  */
123
123
  int rnd_next(unsigned char *buf);
124
124
  int rnd_pos(unsigned char * buf, unsigned char *pos);
125
125
  int doEndTableScan();
126
 
  TinaShare *get_share(const char *table_name);
 
126
  TinaShare *get_share(const std::string &table_name);
127
127
  int free_share();
128
128
  int repair(drizzled::Session* session, drizzled::HA_CHECK_OPT* check_opt);
129
129
  /* This is required for SQL layer to know that we support autorepair */