mongo_ha 1.11.2 → 1.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongo_ha/mongo_client.rb +2 -2
- data/lib/mongo_ha/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89d04c7e0d88bf50ad147143668ea57972f1eab1
|
4
|
+
data.tar.gz: cc5df8018e365e95f47d9694c4b1783a6ef80819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08cb5c187dc5c37da6fe7bb2c2513cade426a570a6f51928ca3dd443764c9536f8bf957dfeea8c74a56ec8deda079a7d347b70a49efdfdafafba6bcd5ab15ff8
|
7
|
+
data.tar.gz: eec6f0d8fb69f83171674dd769034f04826f5f6eb691618315ebecc41b2e65c54462fbced2871570fd77a018fe37b7345ccf0c1f3f383f6ea3be6207dcc9a9b3
|
@@ -113,7 +113,7 @@ module MongoHA
|
|
113
113
|
rescue Mongo::ConnectionFailure => exc
|
114
114
|
# Retry if reconnected, but only once to prevent an infinite loop
|
115
115
|
logger.warn "Connection Failure: '#{exc.message}' [#{exc.error_code}]"
|
116
|
-
if !retried &&
|
116
|
+
if !retried && _reconnect
|
117
117
|
retried = true
|
118
118
|
# TODO There has to be a way to flush the connection pool of all inactive connections
|
119
119
|
retry
|
@@ -154,7 +154,7 @@ module MongoHA
|
|
154
154
|
# per connection will attempt to re-establish the connection
|
155
155
|
#
|
156
156
|
# Returns whether the connection is connected again
|
157
|
-
def
|
157
|
+
def _reconnect
|
158
158
|
logger.debug "Going to reconnect"
|
159
159
|
|
160
160
|
# Prevent other threads from invoking reconnect logic at the same time
|
data/lib/mongo_ha/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_ha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongo
|