Software QA (13)
SQL Server (1)
What Happens to Your Transactions When ERROR 1213 Occurred
What Happens to Your Transactions When ERROR 1213 Occurred? - MySQL FAQs - Transaction Management: Commit or Rollback
If your transaction receives the "Deadlock found when trying to get lock" - ERROR 1213, MySQL server automatically terminates your transaction and rolls back your data changes of the entire transaction. This is why the error messages tells you to "try restarting transaction".
At the same time, locks owned by the terminated (rolled back) transaction will be released.
MySQL server will not touch the other transaction. But the block will be removed, since the lock owned the terminated transaction is released. The other transaction will be able to continue normally.
Note that MySQL server automatically detects dead locks and resolved them by rollback actions.
2007-05-11, 6748👍, 0💬
Is XHTML Element Name Case Sensitive? - XHTML Tutorials - Introduction To Tag and Attribute Syntax Y...
What invokes a thread's run() method? After a thread is started, via its start() method of the Threa...
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
What is synchronization and why is it important? With respect to multithreading, synchronization is ...