]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_objectstore_tool: In error case umount objectstore
authorDavid Zafman <dzafman@redhat.com>
Thu, 4 Dec 2014 00:35:09 +0000 (16:35 -0800)
committerLoic Dachary <ldachary@redhat.com>
Fri, 5 Dec 2014 12:01:36 +0000 (13:01 +0100)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/ceph_objectstore_tool.cc

index b96ef07a7c6be5f981bb32414f0b3faa87074950..433dadef8f83caeb647a158579216668862020d2 100644 (file)
@@ -2351,7 +2351,8 @@ int main(int argc, char **argv)
       }
     } catch (std::runtime_error& e) {
       cerr << e.what() << std::endl;
-      exit(1);
+      ret = 1;
+      goto out;
     }
   }