litestream 0.10.0-x86_64-linux → 0.10.1-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/litestream/version.rb +1 -1
- data/lib/litestream.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feb8967ef21cccf76f855e07d5f2e09508b3ff7e9188c7c96ec08b51263d76a6
|
4
|
+
data.tar.gz: 716742d9bd981b9641b1ee79002196b32d318b565dec1695c20564cb8de621f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f86209f00eab67b147b5a23679d7db4fa4e6591766a6d040a3c216160579cd3d3b358a759bb25084ff5525f951b28169c067a28ad3b83b12787986e0e74c0215
|
7
|
+
data.tar.gz: 8d3567f8ee2f9251b3f1a194cbbcd6a3b6cf18cd69e0a5c6ef8dfd47d85fbbf8b05a73141e3b653f1d136e5472f20df37e36833f66d772251ed5ed34f471ddee
|
data/lib/litestream/version.rb
CHANGED
data/lib/litestream.rb
CHANGED
@@ -39,7 +39,9 @@ module Litestream
|
|
39
39
|
backup = SQLite3::Database.new(backup_path)
|
40
40
|
result = backup.execute("SELECT 1 FROM _litestream_verification WHERE uuid = ? LIMIT 1", sentinel) # => [[1]] || []
|
41
41
|
|
42
|
-
raise VerificationFailure, "Verification failed
|
42
|
+
raise VerificationFailure, "Verification failed for `#{database_path}`" if result.empty?
|
43
|
+
|
44
|
+
true
|
43
45
|
ensure
|
44
46
|
database.execute("DELETE FROM _litestream_verification WHERE uuid = ?", sentinel)
|
45
47
|
database.close
|