From: xie xingguo Date: Sun, 18 Sep 2016 02:48:26 +0000 (+0800) Subject: tools/ceph_objectstore_tool: set error code if path of mon-db does not exist X-Git-Tag: v11.0.1~210^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a6cf4a4503716f08d26ac6bbe24a9cab503a0e77;p=ceph-ci.git tools/ceph_objectstore_tool: set error code if path of mon-db does not exist Signed-off-by: xie xingguo --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index d75b575ce6a..e5a5fec7cac 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -2874,6 +2874,7 @@ int main(int argc, char **argv) } else if (op == "update-mon-db") { if (!vm.count("mon-store-path")) { cerr << "Please specify the path to monitor db to update" << std::endl; + ret = -EINVAL; } else { ret = update_mon_db(*fs, superblock, dpath + "/keyring", mon_store_path); }