redis-sentinel2 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/redis-sentinel/client.rb +1 -1
- data/lib/redis-sentinel/version.rb +1 -1
- metadata +4 -4
|
@@ -94,7 +94,7 @@ class Redis::Client
|
|
|
94
94
|
def call_with_readonly_protection(*args, &block)
|
|
95
95
|
tries = 0
|
|
96
96
|
call_without_readonly_protection(*args, &block)
|
|
97
|
-
rescue Redis::CommandError => e
|
|
97
|
+
rescue RuntimeError, Redis::CommandError => e
|
|
98
98
|
if e.message == "READONLY You can't write against a read only slave."
|
|
99
99
|
reconnect
|
|
100
100
|
retry if (tries += 1) < 4
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redis-sentinel2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 1.3.
|
|
9
|
+
- 1
|
|
10
|
+
version: 1.3.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Richard Huang
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-09-
|
|
18
|
+
date: 2013-09-11 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: redis
|