Transaction MySQL

SELECT IS_USED_LOCK('lock1');