~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2010-10-12 02:56:36 UTC
  • mto: (1843.8.1 trunk-drizzle)
  • mto: This revision was merged to the branch mainline in revision 1851.
  • Revision ID: brian@tangent.org-20101012025636-3y0hhswcxdb04c75
Cleans up some spots where we were using mutable but did not need too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
 
248
248
void close_handle_and_leave_table_as_lock(Table *table)
249
249
{
250
 
  TableShare *share, *old_share= table->getMutableShare();
251
250
  assert(table->db_stat);
252
251
  assert(table->getShare()->getType() == message::Table::STANDARD);
253
252
 
258
257
  */
259
258
  TableIdentifier identifier(table->getShare()->getSchemaName(), table->getShare()->getTableName(), message::Table::INTERNAL);
260
259
  const TableIdentifier::Key &key(identifier.getKey());
261
 
  share= new TableShare(identifier.getType(),
262
 
                        identifier,
263
 
                        const_cast<char *>(&key[0]),  static_cast<uint32_t>(old_share->getCacheKeySize()));
 
260
  TableShare *share= new TableShare(identifier.getType(),
 
261
                                    identifier,
 
262
                                    const_cast<char *>(&key[0]),  static_cast<uint32_t>(table->getShare()->getCacheKeySize()));
264
263
 
265
264
  table->cursor->close();
266
265
  table->db_stat= 0;                            // Mark cursor closed