sequel-replica-failover 0.0.1 → 0.0.2
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: 6f2d90a0ba53c617e157f44b92b0bfa4b64ca85a
|
4
|
+
data.tar.gz: b5937e78dc147af34a8862c408ed6625eb55b616
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6aeb1f7cb7a728fbcdf19f349dfbe22effe14da41dda582db65c572827cd6e63f02e82a324aff6180677ca3103c92fa126db0e8c6414c08d253b530d32b8fb6
|
7
|
+
data.tar.gz: 678b93647e4001381bbaf101fa2683b2f09d1e27937fcdc6c391ae0638104fa4e2ffee0b81d82c2403fadc0be0513fc70053ae675cb35b5f26bbb3ff8d5cbc54
|
@@ -21,6 +21,7 @@ class Sequel::ShardedSingleFailoverConnectionPool < Sequel::ShardedSingleConnect
|
|
21
21
|
rescue Sequel::DatabaseDisconnectError, Sequel::DatabaseConnectionError
|
22
22
|
if server == :read_only && !@db.in_transaction?(server: :read_only)
|
23
23
|
stick
|
24
|
+
disconnect_server(server)
|
24
25
|
|
25
26
|
if @stuck_times >= @pool_retry_count
|
26
27
|
raise
|
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: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Henry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|