sequel-replica-failover 1.0.0 → 1.0.1
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: 4d6591f26230c08ccc58cecb7b05646362451251
|
4
|
+
data.tar.gz: e708c054f4068721c8478a6e0e25cc8da79621ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35432ccbcda3fa45526c08b308234f755335a912a0d5d80215be7d60c822a97af66e46871c3eea23319c0210d772df80329c49075ae8612b178f548df17690ff
|
7
|
+
data.tar.gz: 3d022a85dc1f8deaea5683bf28fd193c35ed47b5037526750f7363bd2eb976a5db25d628a1884cb316f7edfcf2df22f9034699976e225cfd0d8d3a8743ffee59
|
@@ -41,7 +41,8 @@ class Sequel::ShardedSingleFailoverConnectionPool < Sequel::ShardedSingleConnect
|
|
41
41
|
unstick(:read_only)
|
42
42
|
end
|
43
43
|
|
44
|
-
|
44
|
+
server = pick_server(server)
|
45
|
+
block.call(@conns[server] ||= make_new(server))
|
45
46
|
rescue Sequel::DatabaseDisconnectError, Sequel::DatabaseConnectionError => e
|
46
47
|
raise if server != :read_only
|
47
48
|
raise if @db.in_transaction?(server: :read_only)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-replica-failover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Henry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|