Permalink
Browse files

Add an extra message to recognise PostgreSQL deadlocks

  • Loading branch information...
1 parent 317b544 commit 8c7c91bcfbe49bf022287190557e05578732e21e @tomhughes tomhughes committed Jan 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/deadlock_retry.rb
View
@@ -18,7 +18,8 @@ class << self
module ClassMethods
DEADLOCK_ERROR_MESSAGES = [
"Deadlock found when trying to get lock",
- "Lock wait timeout exceeded"
+ "Lock wait timeout exceeded",
+ "deadlock detected"
]
MAXIMUM_RETRIES_ON_DEADLOCK = 3

0 comments on commit 8c7c91b

Please sign in to comment.