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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78407d75c1f21d09e9948b2ec15911b63c307750
4
- data.tar.gz: 83b49c09a6092308c163d1d25e978c944ed06517
3
+ metadata.gz: 89d04c7e0d88bf50ad147143668ea57972f1eab1
4
+ data.tar.gz: cc5df8018e365e95f47d9694c4b1783a6ef80819
5
5
  SHA512:
6
- metadata.gz: a4c1f1ee2caac5429c2caa09718aa64ffd5dcf72279c2a89473ce3bfe2b42c3c70d945437b76bdc59ae9b0d3677bbcf8ac2767530a146b764d2019135ce67b80
7
- data.tar.gz: 2c1d777c770bbe3a73ee45a8ca7ca823d046d03f8b5fd35bb652e13b4b5cd2b45e4529a77faa0b7b084b48a6f8e23de7f26428ba6951676f2689f334931dd57e
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 && reconnect
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 reconnect
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
@@ -1,3 +1,3 @@
1
1
  module MongoHA #:nodoc
2
- VERSION = "1.11.2"
2
+ VERSION = "1.11.3"
3
3
  end
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.2
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-01-22 00:00:00.000000000 Z
11
+ date: 2015-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongo