~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/ha_myisam.cc

  • Committer: Lee Bieber
  • Date: 2011-01-05 05:15:02 UTC
  • mfrom: (2055.1.2 build)
  • Revision ID: kalebral@gmail.com-20110105051502-9v4xuoozzpkka8rs
Merge Evan - fix bug 682773 libdrizzle performance: in non-blocking mode don't attempt to read after write
Merge Stewart - add in more tests from the suites directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
 
117
117
  int doCreateTable(Session&,
118
118
                    Table& table_arg,
119
 
                    const identifier::Table &identifier,
 
119
                    const TableIdentifier &identifier,
120
120
                    message::Table&);
121
121
 
122
 
  int doRenameTable(Session&, const identifier::Table &from, const identifier::Table &to);
 
122
  int doRenameTable(Session&, const TableIdentifier &from, const TableIdentifier &to);
123
123
 
124
 
  int doDropTable(Session&, const identifier::Table &identifier);
 
124
  int doDropTable(Session&, const TableIdentifier &identifier);
125
125
 
126
126
  int doGetTableDefinition(Session& session,
127
 
                           const identifier::Table &identifier,
 
127
                           const TableIdentifier &identifier,
128
128
                           message::Table &table_message);
129
129
 
130
130
  uint32_t max_supported_keys()          const { return MI_MAX_KEY; }
139
139
            HA_READ_ORDER |
140
140
            HA_KEYREAD_ONLY);
141
141
  }
142
 
  bool doDoesTableExist(Session& session, const identifier::Table &identifier);
 
142
  bool doDoesTableExist(Session& session, const TableIdentifier &identifier);
143
143
 
144
144
  void doGetTableIdentifiers(drizzled::CachedDirectory &directory,
145
 
                             const drizzled::identifier::Schema &schema_identifier,
146
 
                             drizzled::identifier::Table::vector &set_of_identifiers);
 
145
                             const drizzled::SchemaIdentifier &schema_identifier,
 
146
                             drizzled::TableIdentifier::vector &set_of_identifiers);
147
147
  bool validateCreateTableOption(const std::string &key, const std::string &state)
148
148
  {
149
149
    (void)state;
157
157
};
158
158
 
159
159
void MyisamEngine::doGetTableIdentifiers(drizzled::CachedDirectory&,
160
 
                                         const drizzled::identifier::Schema&,
161
 
                                         drizzled::identifier::Table::vector&)
 
160
                                         const drizzled::SchemaIdentifier&,
 
161
                                         drizzled::TableIdentifier::vector&)
162
162
{
163
163
}
164
164
 
165
 
bool MyisamEngine::doDoesTableExist(Session &session, const identifier::Table &identifier)
 
165
bool MyisamEngine::doDoesTableExist(Session &session, const TableIdentifier &identifier)
166
166
{
167
167
  return session.getMessageCache().doesTableMessageExist(identifier);
168
168
}
169
169
 
170
170
int MyisamEngine::doGetTableDefinition(Session &session,
171
 
                                       const identifier::Table &identifier,
 
171
                                       const TableIdentifier &identifier,
172
172
                                       message::Table &table_message)
173
173
{
174
174
  if (session.getMessageCache().getTableMessage(identifier, table_message))
566
566
}
567
567
 
568
568
/* Name is here without an extension */
569
 
int ha_myisam::doOpen(const drizzled::identifier::Table &identifier, int mode, uint32_t test_if_locked)
 
569
int ha_myisam::doOpen(const drizzled::TableIdentifier &identifier, int mode, uint32_t test_if_locked)
570
570
{
571
571
  MI_KEYDEF *keyinfo;
572
572
  MI_COLUMNDEF *recinfo= 0;
1328
1328
}
1329
1329
 
1330
1330
int MyisamEngine::doDropTable(Session &session,
1331
 
                              const identifier::Table &identifier)
 
1331
                              const TableIdentifier &identifier)
1332
1332
{
1333
1333
  session.getMessageCache().removeTableMessage(identifier);
1334
1334
 
1346
1346
 
1347
1347
int MyisamEngine::doCreateTable(Session &session,
1348
1348
                                Table& table_arg,
1349
 
                                const identifier::Table &identifier,
 
1349
                                const TableIdentifier &identifier,
1350
1350
                                message::Table& create_proto)
1351
1351
{
1352
1352
  int error;
1392
1392
}
1393
1393
 
1394
1394
 
1395
 
int MyisamEngine::doRenameTable(Session &session, const identifier::Table &from, const identifier::Table &to)
 
1395
int MyisamEngine::doRenameTable(Session &session, const TableIdentifier &from, const TableIdentifier &to)
1396
1396
{
1397
1397
  session.getMessageCache().renameTableMessage(from, to);
1398
1398
 
1503
1503
{
1504
1504
  context("max-sort-file-size",
1505
1505
          po::value<uint64_t>(&max_sort_file_size)->default_value(INT32_MAX),
1506
 
          _("Don't use the fast sort index method to created index if the temporary file would get bigger than this."));
 
1506
          N_("Don't use the fast sort index method to created index if the temporary file would get bigger than this."));
1507
1507
  context("sort-buffer-size",
1508
1508
          po::value<sort_buffer_constraint>(&sort_buffer_size)->default_value(8192*1024),
1509
 
          _("The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE."));
 
1509
          N_("The buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE."));
1510
1510
}
1511
1511
 
1512
1512