switchman 1.9.7 → 1.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/switchman/shard_internal.rb +1 -2
- data/lib/switchman/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b4460b9eec1a0ed73fcfa4b7ac97f96347d9777
|
4
|
+
data.tar.gz: 50f3fe16b1cd257ca95625e8deae16bef4a8fc26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efbe63e6d3c157c180c031f274a2b13e9c2034b56242dcd8c7b81aa37c99037f24fe8412556fb80bf5e85e2d378661b8954827f41f534fe55bff8da0660e376d
|
7
|
+
data.tar.gz: 182383aea02d23c5c80dd80d6673c55e14f3530d67be70a8046d160586b0bf92395217c7eccfd657e0540f701c167be26b6b1e8d6a0d2efd268ead17c176536c
|
@@ -347,8 +347,7 @@ module Switchman
|
|
347
347
|
previous_shard = nil
|
348
348
|
close_connections_if_needed = lambda do |shard|
|
349
349
|
# prune the prior connection unless it happened to be the same
|
350
|
-
if previous_shard && shard != previous_shard &&
|
351
|
-
(shard.database_server != previous_shard.database_server || !previous_shard.database_server.shareable?)
|
350
|
+
if previous_shard && shard != previous_shard && !previous_shard.database_server.shareable?
|
352
351
|
previous_shard.activate do
|
353
352
|
::Shackles.activated_environments.each do |env|
|
354
353
|
::Shackles.activate(env) do
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-03
|
13
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
requirements: []
|
245
245
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.6.
|
246
|
+
rubygems_version: 2.6.10
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: Rails 4 sharding magic
|