mongolly 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mongolly/extensions/mongo/mongo_client.rb +2 -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: 3180b1d4f7e69ae322065228bd937ab7cac50076
|
4
|
+
data.tar.gz: ba33540a259e1e1994349dab03cf4adb1733b21e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75c0f8ed48a9f55741aa8f10a51a607ab0b0b2dbf8d6a79e882276710a73f43788e930e0e70b309d72e5b32cede9d7d2bcacef3ddca88f7ac2152b1de5df6af1
|
7
|
+
data.tar.gz: cfddccb10a833f934b13328788faa9aed1b4237cc51c3d41d4ee95de96442da59b6f69df44a89d7eaa4b68494105af11df64992bec5c696cc781f742adaa19a1
|
@@ -105,8 +105,8 @@ class Mongo::MongoClient
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def with_database_locked
|
108
|
-
@mongolly_logger.debug "Locking database..."
|
109
108
|
disable_profiling
|
109
|
+
@mongolly_logger.debug "Locking database..."
|
110
110
|
# {"info"=>"now locked against writes, use db.fsyncUnlock() to unlock", "seeAlso"=>"http://dochub.mongodb.org/core/fsynccommand", "ok"=>1.0}
|
111
111
|
unless @mongolly_dry_run || locked?
|
112
112
|
response = lock!
|
@@ -207,6 +207,7 @@ class Mongo::MongoClient
|
|
207
207
|
retries ||= 0
|
208
208
|
# {"info"=>"unlock completed", "ok"=>1.0}
|
209
209
|
response = unlock!
|
210
|
+
@mongolly_logger.debug "Unlock response: #{response['info']}"
|
210
211
|
raise UnlockFailException, response["info"] if response["ok"] != 1.0 || locked?
|
211
212
|
rescue UnlockFailException => ex
|
212
213
|
@mongolly_logger.warn "Failed to unlock, #{ex}, sleeping #{UNLOCK_SLEEP} on attempt #{retries} of #{MAX_UNLOCK_RETRIES}"
|
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.15
|
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-07-
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|