activerecord-turntable 2.0.4 → 2.0.5
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: 16165f8a33bac2fc2a458d17e3cdbe26661c5e4e
|
4
|
+
data.tar.gz: ae8c155b11f3998b574442e7041503eb0d0c905e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af05b917a26c42a549de736397b4736c729a61cb5baba9986398d00c188175c1d98354b073b08dfbe1051aae5719470e1401f44f2d4228abd8d0214a66c0ac23
|
7
|
+
data.tar.gz: b986e37ae2f98b4964bdea08d8358b36c73c8de2756362ae4bedfb6dc84c3fe3b189ce81920f14f2b53d878f80d4dbaea11dd6a5a172fe7b49d8fda11a2b740b
|
data/CHANGELOG.md
CHANGED
@@ -13,14 +13,14 @@ module ActiveRecord::Turntable
|
|
13
13
|
def pool_for_with_turntable(owner)
|
14
14
|
owner_to_pool.fetch(owner.name) {
|
15
15
|
if ancestor_pool = pool_from_any_process_for(owner)
|
16
|
-
if ancestor_pool.is_a?(ActiveRecord::
|
17
|
-
# Use same PoolProxy object
|
18
|
-
owner_to_pool[owner.name] = ancestor_pool
|
19
|
-
else
|
16
|
+
if ancestor_pool.is_a?(ActiveRecord::ConnectionAdapters::ConnectionPool)
|
20
17
|
# A connection was established in an ancestor process that must have
|
21
18
|
# subsequently forked. We can't reuse the connection, but we can copy
|
22
19
|
# the specification and establish a new connection with it.
|
23
20
|
establish_connection owner, ancestor_pool.spec
|
21
|
+
else
|
22
|
+
# Use same PoolProxy object
|
23
|
+
owner_to_pool[owner.name] = ancestor_pool
|
24
24
|
end
|
25
25
|
else
|
26
26
|
owner_to_pool[owner.name] = nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-turntable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gussan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|