active_replicas 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0602fd41177e09aa8bd7cfc175ee2765826f85
|
4
|
+
data.tar.gz: 0ba2594cbb05f7e045113d42714c9da79524fdb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb01a7da4b23c9356799d895035ecabbe6d3af5cd4ed3dac9f4c015007bc2d73b35c3e1e495ba535f99f05bb4be6711456e062672348448b8fe6fb650911054
|
7
|
+
data.tar.gz: da15dcea0aeaaee48020fb5d625cf432f86426574b04261f960b56d501b49c971ffc274f30e47047f3f8f94513c987e0e999c99613d03abf0de386083a45f2a1
|
@@ -17,6 +17,10 @@ module ActiveReplicas
|
|
17
17
|
@process_to_connection_pool = Concurrent::Map.new
|
18
18
|
end
|
19
19
|
|
20
|
+
def connection_pool_list
|
21
|
+
[ @process_to_connection_pool[Process.pid] ].compact
|
22
|
+
end
|
23
|
+
|
20
24
|
def establish_connection(owner, spec)
|
21
25
|
prefix = '[ActiveReplicas::Rails4::ConnectionHandler#establish_connection]'
|
22
26
|
ActiveRecord::Base.logger&.warn "#{prefix} Ignoring spec for #{owner.inspect}: #{spec.inspect}"
|