MySQL Forums
Forum List  »  InnoDB

Re: deadlock: a row being locked by a query twice?
Posted by: Amit K
Date: April 10, 2016 07:58PM

That's true, following query results in lots of deadlocks (due to gap locks)

SELECT
*
FROM
`active_user`
WHERE `user_id` = 111111
AND `identifier` = 'XXXXXXXXXXXXXX@gmail.com'
AND find_in_set (`type`, '1,11,18') > 0 <-- gotto use this statement, it's a stored procedure that takes 'type' as an argument viz '1,11,18'
FOR UPDATE

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: deadlock: a row being locked by a query twice?
902
April 10, 2016 07:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.