I have read mysql documentation and maybe I just don't understand it all. What I'm looking for is the row locking from reading for other sessions. While the row is locked I would like the other sessions to wait until the lock is released. I don't want the other sessions to read from snapshot! they must wait until release is made!
What I would like to get is exactly the same as the following example but for a single row instead of whole table lock:
START TRANSACTION
LOCK TABLES table1 WRITE
SELECT * FROM table1 WHERE id = 40912
UPDATE table1 SET column1 = 'value1' WHERE id = 40912
UNLOCK TABLES
COMMIT
Thank you in advance!