~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/get_lock.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:
46
46
  if (not res->length())
47
47
    return 0;
48
48
 
49
 
  user_locks::Storable *list= dynamic_cast<user_locks::Storable *>(getSession().getProperty("user_locks"));
 
49
  user_locks::Storable *list= static_cast<user_locks::Storable *>(getSession().getProperty("user_locks"));
50
50
  if (list) // To be compatible with MySQL, we will now release all other locks we might have.
51
51
    list->erase_all();
52
52