Created
April 18, 2017 07:36
-
-
Save lulalala/5a794bb94ed9ea316e43166b5405584f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo.with_lock do | |
# insert a | |
bar.with_lock do | |
# Mysql2::Error: Lock wait timeout exceeded | |
end | |
end |
according to the doc, you need to raise ActiveRecord::Rollback
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@insert a was not rolled back somehow, but I can't replicate it.