From a6cf4a4503716f08d26ac6bbe24a9cab503a0e77 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sun, 18 Sep 2016 10:48:26 +0800 Subject: [PATCH] tools/ceph_objectstore_tool: set error code if path of mon-db does not exist Signed-off-by: xie xingguo --- src/tools/ceph_objectstore_tool.cc | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5