ghazel-deadlock_retry 1.1.1.1 → 1.1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ghazel-deadlock_retry}
5
- s.version = "1.1.1.1"
5
+ s.version = "1.1.1.2"
6
6
  s.authors = ["Jamis Buck", "Mike Perham"]
7
7
  s.description = s.summary = %q{Provides automatic deadlock retry and logging functionality for ActiveRecord and MySQL}
8
8
  s.email = %q{mperham@gmail.com}
@@ -41,6 +41,7 @@ module DeadlockRetry
41
41
  retry_count += 1
42
42
  logger.info "Deadlock detected on retry #{retry_count}, restarting transaction"
43
43
  log_innodb_status if DeadlockRetry.innodb_status_available?
44
+ sleep(rand*retry_count)
44
45
  retry
45
46
  else
46
47
  raise
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-deadlock_retry
3
3
  version: !ruby/object:Gem::Version
4
- hash: 81
4
+ hash: 87
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
9
  - 1
10
- - 1
11
- version: 1.1.1.1
10
+ - 2
11
+ version: 1.1.1.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jamis Buck
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-05-14 00:00:00 Z
20
+ date: 2011-06-21 00:00:00 Z
21
21
  dependencies: []
22
22
 
23
23
  description: Provides automatic deadlock retry and logging functionality for ActiveRecord and MySQL