~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2010-10-25 21:20:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1879.
  • Revision ID: brian@tangent.org-20101025212033-9b6ll0yaibrba5p0
Stick to static cast.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
 
111
111
  table::Concurrent *setTable(Table *arg)
112
112
  {
113
 
    return tables= dynamic_cast<table::Concurrent *>(arg);
 
113
    return tables= static_cast<table::Concurrent *>(arg);
114
114
  }
115
115
 
116
116
public:
499
499
bool Session::free_cached_table()
500
500
{
501
501
  bool found_old_table= false;
502
 
  table::Concurrent *table= dynamic_cast<table::Concurrent *>(open_tables);
 
502
  table::Concurrent *table= static_cast<table::Concurrent *>(open_tables);
503
503
 
504
504
  safe_mutex_assert_owner(LOCK_open.native_handle());
505
505
  assert(table->key_read == 0);
1267
1267
      }
1268
1268
      if (table)
1269
1269
      {
1270
 
        unused_tables.unlink(dynamic_cast<table::Concurrent *>(table));
 
1270
        unused_tables.unlink(static_cast<table::Concurrent *>(table));
1271
1271
        table->in_use= this;
1272
1272
      }
1273
1273
      else
1727
1727
      else
1728
1728
      {
1729
1729
        /* We already have a name lock, remove copy */
1730
 
        remove_table(dynamic_cast<table::Concurrent *>(table));
 
1730
        remove_table(static_cast<table::Concurrent *>(table));
1731
1731
      }
1732
1732
    }
1733
1733
    else