Add an extra message to detect Postgres deadlocks.
authorTom Hughes <tom@compton.nu>
Fri, 5 Jun 2009 23:08:29 +0000 (23:08 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 5 Jun 2009 23:08:29 +0000 (23:08 +0000)
vendor/plugins/deadlock_retry/lib/deadlock_retry.rb

index 39aeff869760e1963ff550c2f4e17bca5500cf9a..f287c4e6743e254a04a781e45ad222548d9965ec 100644 (file)
@@ -33,7 +33,8 @@ module DeadlockRetry
   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