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: a338272e19a13d468284cedccabd633eaeb930d6
4
- data.tar.gz: bd424f6b11b7eeb0637df0cabfb6e5e7a40d9175
3
+ metadata.gz: 6f2d90a0ba53c617e157f44b92b0bfa4b64ca85a
4
+ data.tar.gz: b5937e78dc147af34a8862c408ed6625eb55b616
5
5
  SHA512:
6
- metadata.gz: c07b25a6c843c8614eccdb633b9f6019fb30cb47b2ced0cf189c6f298c3831e1fd75d048408b73e7026d4ef36c69e9104164e660764cd8e5b4cf24622fbca0ef
7
- data.tar.gz: 8e87d291618c292d845fa541f4765481432ffc5d69310a23d674e6c4adc17cdd7fed63b59352e7b3dd8b1bd2096c294660b68554805482abd556ba1f768efeac
6
+ metadata.gz: b6aeb1f7cb7a728fbcdf19f349dfbe22effe14da41dda582db65c572827cd6e63f02e82a324aff6180677ca3103c92fa126db0e8c6414c08d253b530d32b8fb6
7
+ data.tar.gz: 678b93647e4001381bbaf101fa2683b2f09d1e27937fcdc6c391ae0638104fa4e2ffee0b81d82c2403fadc0be0513fc70053ae675cb35b5f26bbb3ff8d5cbc54
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module ReplicaFailover
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -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.1
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-01 00:00:00.000000000 Z
11
+ date: 2013-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel