~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/release_locks.cc

  • Committer: Brian Aker
  • Date: 2010-10-21 05:03:11 UTC
  • mto: (1866.1.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1867.
  • Revision ID: brian@tangent.org-20101021050311-gmobtsn3cgp8tz0b
Add a catalog() command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
{
31
31
  int64_t count= 0;
32
32
 
33
 
  user_locks::Storable *list= static_cast<user_locks::Storable *>(getSession().getProperty("user_locks"));
 
33
  user_locks::Storable *list= dynamic_cast<user_locks::Storable *>(getSession().getProperty("user_locks"));
34
34
  if (list) // To be compatible with MySQL, we will now release all other locks we might have.
35
35
    count= list->erase_all();
36
36