]> git-server-git.apps.pok.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)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Mar 2015 19:20:58 +0000 (11:20 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit bc6ea9cb8a2b86c73f7f15bc46145177ccf91f4b)

src/tools/ceph_objectstore_tool.cc

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