~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

  • Committer: Brian Aker
  • Date: 2009-12-01 02:39:03 UTC
  • mfrom: (1234.1.4 push)
  • Revision ID: brian@gaz-20091201023903-1id5z7xnup695jaq
Merge of Brian + Jay test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
public:
141
141
  ArchiveEngine(const string &name_arg)
142
142
   : drizzled::plugin::StorageEngine(name_arg,
143
 
                                     HTON_FILE_BASED
144
 
                                      | HTON_HAS_DATA_DICTIONARY) 
 
143
                                     HTON_FILE_BASED |
 
144
                                     HTON_STATS_RECORDS_IS_EXACT |
 
145
                                     HTON_HAS_RECORDS |
 
146
                                     HTON_HAS_DATA_DICTIONARY)
145
147
  {
146
148
    table_definition_ext= ARZ;
147
149
  }
148
150
 
149
 
  uint64_t table_flags() const
150
 
  {
151
 
    return (HA_NO_TRANSACTIONS |
152
 
            HA_STATS_RECORDS_IS_EXACT |
153
 
            HA_HAS_RECORDS);
154
 
  }
155
 
 
156
151
  virtual Cursor *create(TableShare &table,
157
152
                          MEM_ROOT *mem_root)
158
153
  {
180
175
  ArchiveShare *findOpenTable(const string table_name);
181
176
  void addOpenTable(const string &table_name, ArchiveShare *);
182
177
  void deleteOpenTable(const string &table_name);
 
178
 
 
179
  uint32_t max_supported_keys()          const { return 1; }
 
180
  uint32_t max_supported_key_length()    const { return sizeof(uint64_t); }
 
181
  uint32_t max_supported_key_part_length() const { return sizeof(uint64_t); }
183
182
};
184
183
 
185
184
 
1378
1377
}
1379
1378
 
1380
1379
/*
1381
 
  We just return state if asked.
1382
 
*/
1383
 
bool ha_archive::is_crashed() const
1384
 
{
1385
 
  return(share->crashed);
1386
 
}
1387
 
 
1388
 
/*
1389
1380
  Simple scan of the tables to make sure everything is ok.
1390
1381
*/
1391
1382