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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e4150dd42a9bbef396ff00c1975801aa7b3f04a
4
- data.tar.gz: 7f45feff004cdb1899b9a23928c245dc5c14e73a
3
+ metadata.gz: 3180b1d4f7e69ae322065228bd937ab7cac50076
4
+ data.tar.gz: ba33540a259e1e1994349dab03cf4adb1733b21e
5
5
  SHA512:
6
- metadata.gz: 3d5fe8937291b7b98be798fa2af5bb8dd62a829e8d373725b23ae56957b1de1bfae80c3b9bdafa60747532d01f50ca73ec2300ef76727999958995b21bc0ae08
7
- data.tar.gz: d14155a3d15822d3e2b3de279645a82ceb2b7b159081eb08776e36e5f8b2fae491196932db30f653a5bd63884f37a23ba4cb18710218d02748c33343bfce9dcf
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}"
@@ -1,3 +1,3 @@
1
1
  module Mongolly
2
- VERSION = "0.2.14".freeze
2
+ VERSION = "0.2.15".freeze
3
3
  end
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.14
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-22 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor