mongolly 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongolly/extensions/mongo/mongo_client.rb +1 -1
- data/lib/mongolly/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: fa9a9bc9641c46ad2b74e4530c4184566843d719
|
4
|
+
data.tar.gz: da3009f011c727d28cb665865f63ec7f0a0ca148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc7ef72f9d3f159370b17d8f3e8d46fcd85b24ec5c4cc9c4ddc84879d4537fcb451b340abbbd437a0247c9e39d8d5083f1c2cf7129518ce538b94951b1b5397
|
7
|
+
data.tar.gz: 8b429d04fa7508a242d2789bf0dcd699b1ce0a992ea19d21cc4032169e1761eeb374f032232382b3fb80edb16613fe2dfea3cfd3f05388fb7d2069dd3a74f2df
|
@@ -61,7 +61,7 @@ class Mongo::MongoClient
|
|
61
61
|
retry_logger = proc do |_, attempt_number, total_delay|
|
62
62
|
@mongolly_logger.debug "Error enabling balancing (config server not up?); retry attempt #{attempt_number}; #{total_delay} seconds have passed."
|
63
63
|
end
|
64
|
-
with_retries(max_tries: 5, handler: retry_logger, rescue: Mongo::OperationFailure, base_sleep_seconds: 5, max_sleep_seconds: 120) do
|
64
|
+
with_retries(max_tries: 5, handler: retry_logger, rescue: [Mongo::OperationFailure, Mongo::ConnectionFailure], base_sleep_seconds: 5, max_sleep_seconds: 120) do
|
65
65
|
self["config"].collection("settings").update({ _id: "balancer" }, { "$set" => { stopped: false } }, upsert: true) unless @mongolly_dry_run
|
66
66
|
end
|
67
67
|
end
|
data/lib/mongolly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongolly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Saffitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|