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_barrier";
4
SELECT get_lock(@lock_name);
5
#SELECT if ((is_used_lock(@lock_name) = CONNECTION_ID()), "YES", "NO");