non effective update returns deadlock error

Bug #889523 reported by Seppo Jaakola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Fix Released
High
Seppo Jaakola
5.5
Fix Released
High
Seppo Jaakola

Bug Description

If an UPDATE statement does not modify any rows, deadlock error is returned.
Correct behavior would be to return OK status and show rows changd value as 0.

Howto reproduce:

Start one Galera node and issue:

mysql> CREATE TABLE test.t (i int);
mysql> INSERT INTO test.t VALUES (1);
mysql> UPDATE test.t set i=2;
ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction

Related branches

Revision history for this message
Seppo Jaakola (seppo-jaakola) wrote :
Revision history for this message
Seppo Jaakola (seppo-jaakola) wrote :

Another related fix to do post commit cleanup for empty transactions in: http://bazaar.launchpad.net/~codership/codership-mysql/wsrep-5.5/revision/3625

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.