Skip to content

Instantly share code, notes, and snippets.

@mpchadwick
Last active December 15, 2015 15:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpchadwick/82037f4f14c634e15fc6 to your computer and use it in GitHub Desktop.
Save mpchadwick/82037f4f14c634e15fc6 to your computer and use it in GitHub Desktop.
Simulate a Deadlock in Magento
# Run the following queries
set transaction isolation level serializable;
# In the admin
start transaction;
select * from core_config_data;
# load the system configuration
# On the frontend
start transaction;
select * from sales_flat_quote for update;
# Update a shopping cart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment