active_record_host_pool 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record_host_pool/pool_proxy.rb +8 -2
- data/test/database.yml +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c38ebceb4621733f8beab2187309bdd60bbf207
|
4
|
+
data.tar.gz: 3eb2efdc2264d85149ba5aec4e975e844a7b2344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a8dd74cc7cc9a89c220169d9f1999098bdb1a598e07be23a0aaa5fd2e510183e279c6533959fdad9099dabbda320e23dbc28a1a5ffece68547300eb40de1110
|
7
|
+
data.tar.gz: 64782949403041135a1cdcae145374cff83f6e347d825ef797e661535d30d857897076d1844b383fa44436d1407b908ee51bfc9fed636d9ee0ca04a6ebc173a6
|
@@ -66,11 +66,17 @@ module ActiveRecordHostPool
|
|
66
66
|
def disconnect!
|
67
67
|
p = _connection_pool(false)
|
68
68
|
return unless p
|
69
|
-
|
70
|
-
|
69
|
+
p.disconnect!
|
70
|
+
p.automatic_reconnect = true if p.respond_to?(:automatic_reconnect=)
|
71
71
|
_clear_connection_proxy_cache
|
72
72
|
end
|
73
73
|
|
74
|
+
def automatic_reconnect=(value)
|
75
|
+
p = _connection_pool(false)
|
76
|
+
return unless p
|
77
|
+
p.automatic_reconnect = value if p.respond_to?(:automatic_reconnect=)
|
78
|
+
end
|
79
|
+
|
74
80
|
def clear_reloadable_connections!
|
75
81
|
_connection_pool.clear_reloadable_connections!
|
76
82
|
_clear_connection_proxy_cache
|
data/test/database.yml
CHANGED