litestream 0.10.0-arm64-linux → 0.10.1-arm64-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: 075d7c38a9b7bc6c89a30d35c2d43cd9f715b5cc4c530ff9fa33fe6e32e81cd9
|
4
|
+
data.tar.gz: 9ae27b5256f659d4e408983babe271f360f6878fcd950bc9ad92772c22820f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ed1f6a402f05ab6f4756aea106084d94bded335b6581055d7d3c411951527f02d9d1cc6911a889737413a9ef495f1837076edd4a1ade42ae5015dff6a2b4ef
|
7
|
+
data.tar.gz: 31fc473b5bacb124e9f9fe4a18158ba695d0e5ba5f77a6f7532466f1c50203a544d532adae6e23ff8384f6a99a0619d7e1c9d5e95bacdfa6851bd3c10d62edd5
|
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
|