]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools/ceph_objectstore_tool: set error code if path of mon-db does not exist
authorxie xingguo <xie.xingguo@zte.com.cn>
Sun, 18 Sep 2016 02:48:26 +0000 (10:48 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sun, 18 Sep 2016 03:42:45 +0000 (11:42 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/tools/ceph_objectstore_tool.cc

index d75b575ce6af64fe6abd89fed7f3441e9f0cc06f..e5a5fec7caceb9c2f541aaf68505fa1c9c46637b 100644 (file)
@@ -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);
     }