~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/tests/t/dangling_lock.test

  • Committer: Brian Aker
  • Date: 2010-10-15 02:39:18 UTC
  • mfrom: (1823.6.9 users_locks)
  • Revision ID: brian@tangent.org-20101015023918-p6o0hp1fdmiwwm0d
MErge in user locks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# The goal is to create a "dangling lock". We should be cleaning up locks on
 
2
# exit, and this will tell us (via valgrind) if that is happending.
 
3
set @lock_name= "dangling_lock";
 
4
SELECT get_lock(@lock_name);
 
5
SELECT if ((is_used_lock(@lock_name) = CONNECTION_ID()), "YES", "NO");