From: David Zafman Date: Tue, 10 Feb 2015 01:14:50 +0000 (-0800) Subject: ceph-objectstore-tool: Eliminate obscure "Invalid params" error X-Git-Tag: v9.0.2~168^2~43 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cfca6835bd53d535bde2793551211845b0facebd;p=ceph.git ceph-objectstore-tool: Eliminate obscure "Invalid params" error Will fail later with "No such file or directory" for an empty data-path because we've already checked for vm.count("data-path") Signed-off-by: David Zafman --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 4bf9de00ff39..76a710b59d56 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -2460,11 +2460,6 @@ int main(int argc, char **argv) return 1; } - if (dpath.length() == 0) { - cerr << "Invalid params" << std::endl; - return 1; - } - osflagbits_t flags = 0; if (vm.count("skip-journal-replay")) flags |= SKIP_JOURNAL_REPLAY;