snap-ebs 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plugins/mongo_plugin.rb +4 -6
- data/lib/snap_ebs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2061537094f47e4df011fc2d26e44e415b4b3bb0
|
4
|
+
data.tar.gz: cdd3279f8cfce83678b9e32d9a857e840bb73cdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28ace1110e45b2f3477c83758fe6e6f334d8d6fa91763cea846ae4231e0df18070b7d0a8cb6c6119f1bdf14e448bdbf7e436939bbb6e1ca25852675ac4339ddd
|
7
|
+
data.tar.gz: c8277d4443918049ac3eb3463f06747301856d764f096c0c59afdc2989152be25c5a465da01af9e74f19d8b9af5e1020cb7a93a0e5057233be76d355e1e9882f
|
data/lib/plugins/mongo_plugin.rb
CHANGED
@@ -37,7 +37,7 @@ class SnapEbs::Plugin::MongoPlugin < SnapEbs::Plugin
|
|
37
37
|
def before
|
38
38
|
require 'mongo'
|
39
39
|
Mongo::Logger.logger = logger
|
40
|
-
return false unless safe_to_operate?
|
40
|
+
return false unless carefully('check if we can operate safely') { safe_to_operate? }
|
41
41
|
|
42
42
|
if wired_tiger?
|
43
43
|
logger.info "Wired Tiger storage engine detected"
|
@@ -96,12 +96,10 @@ class SnapEbs::Plugin::MongoPlugin < SnapEbs::Plugin
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def primary?
|
99
|
-
|
100
|
-
|
101
|
-
@primary = client.command(isMaster: 1).first['ismaster']
|
102
|
-
end
|
103
|
-
@primary
|
99
|
+
if @primary.nil?
|
100
|
+
@primary = client.command(isMaster: 1).first['ismaster']
|
104
101
|
end
|
102
|
+
@primary
|
105
103
|
end
|
106
104
|
|
107
105
|
def standalone?
|
data/lib/snap_ebs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snap-ebs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Conrad
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.2'
|
55
55
|
description: Tested, service-aware and consistent AWS EC2 backups via EBS snapshots.
|
56
56
|
email: bryan.conrad@synctree.com
|
57
57
|
executables:
|