From f582cd0e08328433f5bc98e360c6040dda315b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 8 Nov 2012 13:02:32 +0100 Subject: [PATCH] Bug #1564: Do not restore the db when the backup cannot be done --- src/onedb/onedb.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/onedb/onedb.rb b/src/onedb/onedb.rb index 031e3e5453..09ab881b8b 100644 --- a/src/onedb/onedb.rb +++ b/src/onedb/onedb.rb @@ -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