From cfca6835bd53d535bde2793551211845b0facebd Mon Sep 17 00:00:00 2001 From: David Zafman Date: Mon, 9 Feb 2015 17:14:50 -0800 Subject: [PATCH] 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 --- src/tools/ceph_objectstore_tool.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 4bf9de00ff39e..76a710b59d567 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; -- 2.39.5