1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

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

This commit is contained in:
Carlos Martín 2012-11-08 13:02:32 +01:00
parent 627058c341
commit f582cd0e08

@ -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