]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/deadlock_retry/lib/deadlock_retry.rb
Handle Timeout::Error exceptions which are caught by ActiveRecord.
[rails.git] / 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