Bug #1564: Do not restore the db when the backup cannot be done

(cherry picked from commit f582cd0e08)
This commit is contained in:
Carlos Martín authored and Javi Fontan committed 2012-12-20 17:30:05 +01:00
1 parent 33f60afdac
commit 51ff205b5c
1 file changed
+3 -3
+3 -3
View File
@@ -183,10 +183,10 @@ class OneDB
"#{@backend.db_version}, current database version is #{version}"
end
begin
# FSCK will be executed, make DB backup
backup(ops[:backup], ops)
# FSCK will be executed, make DB backup
backup(ops[:backup], ops)
begin
puts " > Running fsck" if ops[:verbose]
result = @backend.fsck