~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/performance_dictionary/session_usage.cc

  • Committer: Lee Bieber
  • Date: 2010-10-26 01:01:10 UTC
  • mfrom: (1878.1.2 merge)
  • Revision ID: kalebral@gmail.com-20101026010110-tcr5mh06md4fro2a
Merge Brian - Remove dynamic cast, causing performance issues in our benchmarks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
  drizzled::plugin::TableFunction::Generator(arg),
62
62
  usage_cache(0)
63
63
64
 
  usage_cache= dynamic_cast<QueryUsage *>(getSession().getProperty("query_usage"));
 
64
  usage_cache= static_cast<QueryUsage *>(getSession().getProperty("query_usage"));
65
65
  if (usage_cache)
66
66
    query_iter= usage_cache->list().rbegin();
67
67
}