ebisu_connection 2.4.0.rc2 → 2.4.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ebisu_connection/connection_manager.rb +4 -1
- data/lib/ebisu_connection/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae05ad3e299c1412e7f77a36afb1bfee8139fc62
|
4
|
+
data.tar.gz: b76179625ec09f24437c985502987c15ce92103d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcc1a6e1e54c3faa1d0c15287f1d9548b29259a0ca2cbb3f5624a1f3ad7a6928381bafa8d88a3fbf31f5d1ce86347d30303dce9c7305c2f7e36ac11a8170c25f
|
7
|
+
data.tar.gz: 3ebf7b325b1169d0505470f51a661c009e4e06c9b7998545de42939c65a23e125f6270c7e6cfd24c95a010758c6ad677e20b706b2ed4560bd9524d03ef5256fa
|
@@ -36,7 +36,10 @@ module EbisuConnection
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def recovery?
|
39
|
-
dead_replicas = @replicas.select
|
39
|
+
dead_replicas = @replicas.select do |pool|
|
40
|
+
c = pool.connection rescue nil
|
41
|
+
!c || !c.active?
|
42
|
+
end
|
40
43
|
return false if dead_replicas.empty?
|
41
44
|
|
42
45
|
dead_replicas.each do |pool|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ebisu_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.0.
|
4
|
+
version: 2.4.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tsukasaoishi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fresh_connection
|