Add an extra message to detect Postgres deadlocks.

This commit is contained in:
Tom Hughes 2009-06-05 23:08:29 +00:00
parent 2b9f430908
commit 606e5ed267

View file

@ -33,7 +33,8 @@ module DeadlockRetry
module ClassMethods module ClassMethods
DEADLOCK_ERROR_MESSAGES = [ DEADLOCK_ERROR_MESSAGES = [
"Deadlock found when trying to get lock", "Deadlock found when trying to get lock",
"Lock wait timeout exceeded" "Lock wait timeout exceeded",
"deadlock detected"
] ]
MAXIMUM_RETRIES_ON_DEADLOCK = 3 MAXIMUM_RETRIES_ON_DEADLOCK = 3